Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Stefan,
You can use the CurDir function to get the current directory.. -- Hope that helps. Vergel Adriano "Stefan Mueller" wrote: I've created a shortcut of an Excel sheet (e.g. Example.xls). On the shortcut I do a right mouse click and then click properties. In 'Start in:' I type 'C:\Temp'. Now I double click the shortcut 'Example.xls' and like to get the current path (in this example 'C:\Temp'). In real VB I do it with a FileListBox: MsgBox (FileListBox1.Path) But how can I do it in VBA (e.g. Excel)? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for your reply.
CurDir is not bad but it doesn't really care what is written in 'Start in:' resp. from which path I've startet the Excel workbook. If I start the Excel workbook e.g. from the Desktop it should show 'C: \Documents and Settings\Administrator\Desktop'. If in 'Start in:' of the shortcut of the Excel workbook is written 'C: \Temp' it should show 'C:\Temp'. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding Current Path | Excel Programming | |||
Current Workbook Path | Excel Programming | |||
Current Workbook Path | Excel Programming | |||
Current Workbook Path | Excel Programming | |||
Current path to Qualified Path | Excel Programming |