Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In my VBA I needed to get some data from another Excel
file located in the same directory with current host excel file.How could I got the current file's path ,something the same as "../" in UNIX? Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
Dim sPath As String sPath = ActiveWorkbook.Path MsgBox sPath End Sub -- HTH. Best wishes Harald Followup to newsgroup only please. " wrote in message ... In my VBA I needed to get some data from another Excel file located in the same directory with current host excel file.How could I got the current file's path ,something the same as "../" in UNIX? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I add a window bar in the menu to show the file's unc path | Setting up and Configuration of Excel | |||
Excel 2k3 query path to current directory | Excel Discussion (Misc queries) | |||
Dynamic directory path | Excel Discussion (Misc queries) | |||
Target directory & Path | Excel Worksheet Functions | |||
Obtain full path to a directory | Excel Programming |