Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Show the excel filename

Hi
I want to use macro to show the active worksheet's filename & the path
(e.g c:\excel\test.xls). How to do it? thx
swah


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Show the excel filename

Hi WeWa,

With your example, c:\excel\test.xls,

ActiveWorkbook.Name will return the workbook name; test.xls
ActiveWorkbook.Fullname will return the name and path; c:\excel\test.xls:

---
Regards,
Norman



"WeWa" wrote in message
...
Hi
I want to use macro to show the active worksheet's filename & the path
(e.g c:\excel\test.xls). How to do it? thx
swah




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Show the excel filename

Try this

MsgBox ActiveWorkbook.FullName

--
Regards Ron de Bruin
http://www.rondebruin.nl


"WeWa" wrote in message ...
Hi
I want to use macro to show the active worksheet's filename & the path
(e.g c:\excel\test.xls). How to do it? thx
swah




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
set filename to <filename-date on open bob engler Excel Worksheet Functions 2 July 13th 06 05:11 AM
I want a cell to show the current filename automatically. Troy Excel Discussion (Misc queries) 4 January 31st 06 02:32 PM
How to show Excel Filename in the worksheet milnei Excel Discussion (Misc queries) 5 December 12th 05 04:35 PM
Show Filename Only in ComboBox Pulldown D.Parker Excel Discussion (Misc queries) 16 June 29th 05 02:46 PM
Saving filename same as import filename Matt Excel Programming 4 February 24th 04 03:01 PM


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