I have to apologize first for not attaching the spreadsheets. As I did the posting at my workplace I rushed a bit. I no longer have access to those two specific example files but no worries I can quickly create a new ones. And this time I will name them properly otherwise its impossible for me to understand any offered codes. So the main file bears name YM26_converer and the system generated xls spreadsheet report bears name YM26. So after I have opened the file YM26_converter I would like to run macro to be prompted to select that system generated YM26 and then when selecting the file it should copy the entire active sheet to paste it to sheet called YM26_download. Alternatively it does not have to prompt with the window to select that YM26 file if it just copies the information over from that YM26 file that is in same folder as that YM26_converter. I aim to always call that report YM26. I would be happy with anything that will successfully copy over the info and keep the dates in intact.
Originally Posted by
snb
With this one, the code is all in red letters when pasted to VBA and it prompts with compile error
Though its missing somethingI have changed it for the time being and it is included with the newly attached files. Its currently like this:
With Roy's offered code I tried to change it to make it work with the new file names and sheet names but i get something wrong and it wont work. I have left it as it is on the attached spreadsheet.
Can I ask either of yours help again
Bookmarks