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

Hi,

On my current opened file, I would like to get the
filename in VBA. Something similar to this that gets the
active sheet name.

sheetname = Activesheet.Name

Thanks,
LC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Active File name

LC,

Try ActiveWorkbook.Name or ActiveWorkbook.FullName


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"LC" wrote in message
...
Hi,

On my current opened file, I would like to get the
filename in VBA. Something similar to this that gets the
active sheet name.

sheetname = Activesheet.Name

Thanks,
LC



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
File & Help only active menu items hill0821 Excel Discussion (Misc queries) 7 December 21st 06 10:58 PM
Insrt curr file name & name of active worksheet respectively Olga Cook Excel Worksheet Functions 2 March 7th 06 10:39 PM
Saving an external file without making it active JENNA Excel Programming 2 January 17th 04 11:51 PM
Determine active file size pk Excel Programming 1 October 27th 03 03:46 PM
Save active worksheet to CSV file Scott Excel Programming 3 September 24th 03 04:51 PM


All times are GMT +1. The time now is 04:03 PM.

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"