Results 1 to 4 of 4

Thread: App.Path in Excel

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2003
    Location
    C:\Windows\Microsoft.NET\Framework
    Posts
    574

    App.Path in Excel

    What is the equivalant of App.Path in VBA programming with Excel? I've tried Me.Path inside the ThisWorkbook module, even tried Workbooks(1).Path but they all return vbNullString.

  2. #2
    Addicted Member
    Join Date
    Aug 2003
    Location
    houston
    Posts
    185
    Sub a()
    MsgBox ThisWorkbook.Path


    End Sub

  3. #3
    Hyperactive Member schuurke28's Avatar
    Join Date
    Feb 2001
    Posts
    402
    or activeworkbook.path

  4. #4
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    You can also use....

    Code:
    Set objExcel = CreateObject("Excel.Application")
    Set oXLApp = objExcel.Workbooks.Open(FileName:=App.Path & "\" & "Book1.xls")

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