|
-
Sep 23rd, 2004, 06:51 AM
#1
Thread Starter
Junior Member
*resolved*get the full filename (with path and all) of the active workbook in Excel?
How can I get the full filename (with path and all) of the active workbook in Excel? Is there a function that returns it?
For example, ActiveWorkbook.Name would give me "Book1.xls", but I want a function that would return "C:\Documents and Settings\MyUsername\My Documents\Book1.xls".
Last edited by odedyer; Sep 25th, 2004 at 06:04 PM.
-
Sep 23rd, 2004, 08:54 AM
#2
This should do it !
Dim strNameAndPath As String
strNameAndPath = ActiveWorkbook.Path & "\" & ActiveWorkbook.Name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|