Try substituting this line:
![]()
Workbooks("master.xlsm").Worksheets("sheet1").Cells(z, 1) Destination:=Range(Cells(z, 1), Cells(y, 1))
Try substituting this line:
![]()
Workbooks("master.xlsm").Worksheets("sheet1").Cells(z, 1) Destination:=Range(Cells(z, 1), Cells(y, 1))
Last edited by AlvaroSiza; 05-09-2012 at 04:41 PM.
Perhaps it was the Noid who should have avoided me...
If you are satisfied with my solution click the small star icon on the left. Thanks
1. Make a copy of your workbook and run the following code on your copy (just in case)
2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
3. Paste the code from above into the empty white space. Close the VBE.
4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".
Alvaro:
Thanks for responding. The code you suggested created a compile error saying 'expected end of statement'. It there something wrong with the syntax?
bump for solution
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks