Here is what I came up with using the macro recorder. The Report Template.xlsm is the sheet containing the macro.
It opens the sheet and then just stops. Any Tips?![]()
Please Login or Register to view this content.
Here is what I came up with using the macro recorder. The Report Template.xlsm is the sheet containing the macro.
It opens the sheet and then just stops. Any Tips?![]()
Please Login or Register to view this content.
Last edited by jcranst; 05-02-2012 at 08:20 AM.
Your code statesShouldnt it be![]()
Please Login or Register to view this content.
Also you can change this part![]()
Please Login or Register to view this content.
To![]()
Please Login or Register to view this content.
This code will copy the data from the 1st worksheet of the Template for vlookups file to the 1st worksheet in this workbook (Report template which contains the macro) in column B - last available row.![]()
Please Login or Register to view this content.
Last edited by arlu1201; 05-02-2012 at 08:27 AM.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
Thanks for the reply. The macro seems to stop after the vlookup sheet is opened.
I added the Msgbox at the end to see if the macro keeps running. The message box does not appear.![]()
Please Login or Register to view this content.
Why dont you attach a sample of both your files? It will be easier to troubleshoot.
I got it! Thanks for your help. After some more google searches I found that having shift in your keyboard shortcut stops the macro when opening sheets. I am still not sure why. I changed the short cut and it works.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks