Hi,
I want my macro to perform some actions, and the last one is to open a specific folder in which I then can choose a file to open. I don't want the macro to open the file, because I want to choose the file that the macro is going to open.
How can I guide the macro to open the correct file subfolder ?
This is what I have (and works) :
vFile = Application.GetOpenFilename("Excel Files (*.xl*)," & "*.xl*", 1, "Select Excel File", "Open", False)
(here I select the file)
Workbooks.Open vFile
So, what is missing, is the instruction to go and look into the correct folder. To my surprise, the following line is not working :
ChDir "\\fs01\Data\Breemes\CSS2\Flows\Accordion Files\A In Process"
Thanks and best wishes to everyone !
Josse.
I want my macro to perform some actions, and the last one is to open a specific folder in which I then can choose a file to open. I don't want the macro to open the file, because I want to choose the file that the macro is going to open.
How can I guide the macro to open the correct file subfolder ?
This is what I have (and works) :
vFile = Application.GetOpenFilename("Excel Files (*.xl*)," & "*.xl*", 1, "Select Excel File", "Open", False)
(here I select the file)
Workbooks.Open vFile
So, what is missing, is the instruction to go and look into the correct folder. To my surprise, the following line is not working :
ChDir "\\fs01\Data\Breemes\CSS2\Flows\Accordion Files\A In Process"
Thanks and best wishes to everyone !
Josse.
Last edited: