PC Review


Reply
Thread Tools Rate Thread

Add filename in a new column

 
 
OnlineWealth
Guest
Posts: n/a
 
      30th Dec 2005

Is it possible to add the actual name of the file in a new column when I
open each file with Excel.

I have multiple files that I need to have the file name included with
each row within the file.

So, I'd like to be able to just open each file and it automatically
inserts a new column and includes the file name in each cell for every
row.

Is this possible?

Thanks,

Mike


--
OnlineWealth
------------------------------------------------------------------------
OnlineWealth's Profile: http://www.excelforum.com/member.php...o&userid=30017
View this thread: http://www.excelforum.com/showthread...hreadid=497075

 
Reply With Quote
 
 
 
 
tkt_tang@hotmail.com
Guest
Posts: n/a
 
      31st Dec 2005
Say, =Cell("Filename",A1) to be placed in worksheet cell A1.

Please refer to the Help file for details. Regards.

 
Reply With Quote
 
OnlineWealth
Guest
Posts: n/a
 
      31st Dec 2005

Thanks that helps, although it also includes the path of the file i.e.
C:\Folder\Filename.

Would you happen to know how to exclude that in the code?

Thanks,

Mik

--
OnlineWealt
-----------------------------------------------------------------------
OnlineWealth's Profile: http://www.excelforum.com/member.php...fo&userid=3001
View this thread: http://www.excelforum.com/showthread.php?threadid=49707

 
Reply With Quote
 
OnlineWealth
Guest
Posts: n/a
 
      31st Dec 2005

Thanks that helps, although it also includes the path of the file i.e.
C:\Folder\Filename.

Would you happen to know how to exclude that in the code?

Thanks,

Mik

--
OnlineWealt
-----------------------------------------------------------------------
OnlineWealth's Profile: http://www.excelforum.com/member.php...fo&userid=3001
View this thread: http://www.excelforum.com/showthread.php?threadid=49707

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      31st Dec 2005
Chip Pearson has a bunch of variations at:
http://www.cpearson.com/excel/excelF.htm

search for Filename.

OnlineWealth wrote:
>
> Thanks that helps, although it also includes the path of the file i.e.,
> C:\Folder\Filename.
>
> Would you happen to know how to exclude that in the code?
>
> Thanks,
>
> Mike
>
> --
> OnlineWealth
> ------------------------------------------------------------------------
> OnlineWealth's Profile: http://www.excelforum.com/member.php...o&userid=30017
> View this thread: http://www.excelforum.com/showthread...hreadid=497075


--

Dave Peterson
 
Reply With Quote
 
OnlineWealth
Guest
Posts: n/a
 
      31st Dec 2005

Got it. That was easy, Thanks Dave.

Mike


--
OnlineWealth
------------------------------------------------------------------------
OnlineWealth's Profile: http://www.excelforum.com/member.php...o&userid=30017
View this thread: http://www.excelforum.com/showthread...hreadid=497075

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count occurrences of filename in column Lucky Microsoft Excel Programming 5 25th Nov 2009 07:48 PM
getting next column and filename =?Utf-8?B?U2FtIEhvZG8=?= Microsoft Excel Discussion 1 5th Oct 2006 05:20 PM
add prefix to filename - macro to loop down column cml0904 Microsoft Excel Programming 2 18th Aug 2006 07:46 PM
how to add column with the workbook-filename juergenkemeter Microsoft Excel Programming 2 13th Jan 2006 05:48 AM
Filename and creation timestamp in 2-column combobox L Mehl Microsoft Excel Programming 4 10th Feb 2004 12:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:44 PM.