Results 1 to 2 of 2

Thread: *resolved*get the full filename (with path and all) of the active workbook in Excel?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2004
    Posts
    28

    *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.

  2. #2
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,657
    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
  •  



Click Here to Expand Forum to Full Width