Hello
have a template workbook shakeout.xltm - what I want to do when running my macro is:
on click: open file dialog box which is at P:\data\misc
It to pause while I pick the xlsx file I want to use (there will be new files each month, so I can't hard code the filename)
When I've picked it, the file opens and then copies from the newly opened file to the shakeout.xltm workbook.
Then I'll repeat this so the next file is opened and copied.
I've been looking for examples to get me started, but I'm only getting quite old results which are giving errors.
I've got as far as the dialog box opening up, but it won't go to where I want it to.
[pre]ChDir "P:\data\misc"
workbookName = Application.GetOpenFilename("Excel Files (*.xls*), *.xls*")[/pre]
Can anyone help please?
thank you for helping
____________
Pendle
have a template workbook shakeout.xltm - what I want to do when running my macro is:
on click: open file dialog box which is at P:\data\misc
It to pause while I pick the xlsx file I want to use (there will be new files each month, so I can't hard code the filename)
When I've picked it, the file opens and then copies from the newly opened file to the shakeout.xltm workbook.
Then I'll repeat this so the next file is opened and copied.
I've been looking for examples to get me started, but I'm only getting quite old results which are giving errors.
I've got as far as the dialog box opening up, but it won't go to where I want it to.
[pre]ChDir "P:\data\misc"
workbookName = Application.GetOpenFilename("Excel Files (*.xls*), *.xls*")[/pre]
Can anyone help please?
thank you for helping
____________
Pendle