Click to See Complete Forum and Search --> : App.Path in Excel
Sathyaish
Sep 4th, 2003, 04:45 AM
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.
adocwra
Sep 4th, 2003, 08:49 AM
Sub a()
MsgBox ThisWorkbook.Path
End Sub
schuurke28
Sep 5th, 2003, 07:51 AM
or activeworkbook.path
lintz
Sep 5th, 2003, 07:03 PM
You can also use....
Set objExcel = CreateObject("Excel.Application")
Set oXLApp = objExcel.Workbooks.Open(FileName:=App.Path & "\" & "Book1.xls")
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.