scotthannaford1973
Board Regular
- Joined
- Sep 27, 2017
- Messages
- 115
- Office Version
- 2010
- Platform
- Windows
Hi
I have a table, lets say columns A to D on "Sheet 1" and I want to be able to select the table, copy it and paste it elsewhere. The only proviso is that as the table gets data from a pivot table, the length of the table changes - sometimes it's A1:D50 and the next day it may be A1:D47 or A1:D100 etc
I'd like to just be able to select the table as far as the bottom row where A is populated - so if A1:A50 have content but A51 onwards is blank, I want to be able to select A1:D50
The rest of the copy and paste VB is fine, but I have no idea how to select "only the populated part of the table"...
any help would be much appreciated!
I have a table, lets say columns A to D on "Sheet 1" and I want to be able to select the table, copy it and paste it elsewhere. The only proviso is that as the table gets data from a pivot table, the length of the table changes - sometimes it's A1:D50 and the next day it may be A1:D47 or A1:D100 etc
I'd like to just be able to select the table as far as the bottom row where A is populated - so if A1:A50 have content but A51 onwards is blank, I want to be able to select A1:D50
The rest of the copy and paste VB is fine, but I have no idea how to select "only the populated part of the table"...
any help would be much appreciated!