|
-
Sep 4th, 2003, 04:45 AM
#1
Thread Starter
Fanatic Member
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.
-
Sep 4th, 2003, 08:49 AM
#2
Addicted Member
Sub a()
MsgBox ThisWorkbook.Path
End Sub
-
Sep 5th, 2003, 07:51 AM
#3
Hyperactive Member
-
Sep 5th, 2003, 07:03 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|