P
Peter Rooney
Good morning, all,
My workbook contains a cell called "Foldername" which currently contains the
following value:
I have a macro,
Sub WorkbookOpen()
On Error Resume Next
ChDir (Sheets("Database").Range("FolderName").Value)
WorkbookToOpen = Application.GetOpenFilename()
Workbooks.Open Filename:=WorkbookToOpen
End Sub
When the FileOpen dialog is displayed, I want the default directory to be
whatever is contained in Foldername. ChDir Doesn't seem to work. Van anyone
advise me how to get around this?
Regards & thanks in advance
Pete
My workbook contains a cell called "Foldername" which currently contains the
following value:
I have a macro,
Sub WorkbookOpen()
On Error Resume Next
ChDir (Sheets("Database").Range("FolderName").Value)
WorkbookToOpen = Application.GetOpenFilename()
Workbooks.Open Filename:=WorkbookToOpen
End Sub
When the FileOpen dialog is displayed, I want the default directory to be
whatever is contained in Foldername. ChDir Doesn't seem to work. Van anyone
advise me how to get around this?
Regards & thanks in advance
Pete