Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default One step paste of XLS file name in one of its own cells

Is there a way to automatically paste the file name of an open excel file
into one of its own cells. I can paste the file name of a Word Document with
a couple of easy steps into a Word document but cannot find a way to do so in
Excel.
Thanks
SeeThomas
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default One step paste of XLS file name in one of its own cells

I should have added if you want the full path and filename use

=CELL("filename")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Mike H" wrote:

Hi,

Put this formula in a cell. It only works if the workbook has been saved

=MID(CELL("filename",A1),1+FIND("[",CELL("filename",A1)),FIND(".",CELL("filename",A1 ))-FIND("[",CELL("filename",A1))-1)

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"SeeThomas" wrote:

Is there a way to automatically paste the file name of an open excel file
into one of its own cells. I can paste the file name of a Word Document with
a couple of easy steps into a Word document but cannot find a way to do so in
Excel.
Thanks
SeeThomas

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default One step paste of XLS file name in one of its own cells

I'd include a reference to a cell in that worksheet:

=CELL("filename",a1)
(I use the address of the cell that contains the formula)

Otherwise, when excel recalculates, you'll see the names of the activesheet and
the activeworkbook.

Mike H wrote:

I should have added if you want the full path and filename use

=CELL("filename")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.

"Mike H" wrote:

Hi,

Put this formula in a cell. It only works if the workbook has been saved

=MID(CELL("filename",A1),1+FIND("[",CELL("filename",A1)),FIND(".",CELL("filename",A1 ))-FIND("[",CELL("filename",A1))-1)

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"SeeThomas" wrote:

Is there a way to automatically paste the file name of an open excel file
into one of its own cells. I can paste the file name of a Word Document with
a couple of easy steps into a Word document but cannot find a way to do so in
Excel.
Thanks
SeeThomas


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
One step paste of XLS file name in one of its own cells Mike H Excel Worksheet Functions 0 May 27th 10 09:51 PM
Creating a Drop Down List with Step by Step Instructions for 2007 remarkable Excel Worksheet Functions 2 March 22nd 09 04:36 AM
What is the step-by-step procedure for making a data list? Bobgolfs56 Excel Discussion (Misc queries) 1 April 23rd 05 02:19 PM
I need step by step instructions to create a macro for 10 imbedde. diana Excel Worksheet Functions 3 January 31st 05 01:56 AM
insert and paste in one step KathyinCincinnati Setting up and Configuration of Excel 1 December 2nd 04 12:30 AM


All times are GMT +1. The time now is 08:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"