Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default File ID name in Excel

Hello Tech Support,

I am writing a macro in excel 2003:

I want to be able to use a macro command that will identify the file name I
am currently working in a given cell. Is there a macro code I can use that
will identify the name of the file I am currently working in?

Thank you for your help.

Rene'
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default File ID name in Excel

Hi

Try this:

Range("A1") = ActiveWorkbook.Name

Regards,
Per

"Rene''48" skrev i meddelelsen
...
Hello Tech Support,

I am writing a macro in excel 2003:

I want to be able to use a macro command that will identify the file name
I
am currently working in a given cell. Is there a macro code I can use
that
will identify the name of the file I am currently working in?

Thank you for your help.

Rene'


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default File ID name in Excel

Hi Rene

Try using ActiveCell.Parent.Parent.Name

Hope this helps,

--
A. Ch. Eirinberg


"Per Jessen" wrote:

Hi

Try this:

Range("A1") = ActiveWorkbook.Name

Regards,
Per

"Rene''48" skrev i meddelelsen
...
Hello Tech Support,

I am writing a macro in excel 2003:

I want to be able to use a macro command that will identify the file name
I
am currently working in a given cell. Is there a macro code I can use
that
will identify the name of the file I am currently working in?

Thank you for your help.

Rene'



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
How to copy 2007 excel file formula results into a 2003 Excel file Nuria Alba de Luz Excel Discussion (Misc queries) 2 July 10th 09 01:48 PM
double click excel file on the desktop excel opens but not file? JPT4266 Excel Discussion (Misc queries) 3 May 7th 09 04:24 PM
ExtenXLS loads data into Excel 2002 file but damages the Excel file. [email protected] Excel Programming 1 April 28th 06 09:37 PM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
Use ADO to transfer data from open excel file to closed excel file JCanyoneer Excel Programming 1 April 1st 05 07:41 AM


All times are GMT +1. The time now is 02:49 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"