JohnGow383
Board Regular
- Joined
- Jul 6, 2021
- Messages
- 141
- Office Version
- 2013
- Platform
- Windows
Hi,
I'm really stuck and I don't know what to do. I have one workbook (lets say WB1) which populates a table when clicking a command button. Afterwards a selection is copied from the first WB and the 2nd WB is opened (WB2). On the 2nd WB I have a event Open macro which then finds the last row in Column C (with offset 1) and selects. I then want to copy and paste values (the selection is 5 columns wide and 2 rows down) however I keep getting run-time errors saying the copy and paste area aren't the same size. They are. If I kill the macro, the selected cell is correct and clicking paste values manually works perfectly.
I can't reference the WB1 (where the data came from) as this spreadsheet changes name on a daily basis.
Any ideas what's going wrong? Is it all happening too quick? I dont see why.
Thanks
I'm really stuck and I don't know what to do. I have one workbook (lets say WB1) which populates a table when clicking a command button. Afterwards a selection is copied from the first WB and the 2nd WB is opened (WB2). On the 2nd WB I have a event Open macro which then finds the last row in Column C (with offset 1) and selects. I then want to copy and paste values (the selection is 5 columns wide and 2 rows down) however I keep getting run-time errors saying the copy and paste area aren't the same size. They are. If I kill the macro, the selected cell is correct and clicking paste values manually works perfectly.
I can't reference the WB1 (where the data came from) as this spreadsheet changes name on a daily basis.
Any ideas what's going wrong? Is it all happening too quick? I dont see why.
Thanks