kingleviathan
Board Regular
- Joined
- Aug 23, 2010
- Messages
- 57
Hi Guys
i have this code -
range("A" & ?).select
Selection.ListObject.ListRows(?).Delete
I need to use this code as entirerow.delete or similar code will not work
In column AA - starting at cell 1 - i have cells with numbers ie AA1 has 3 AA2 has 5, AA3 has 20
So starting with the laste used cell (ie. in my example it is AA3) - I need 20 minus 1 so I need 19 inserted into the (?)
The process is then repeated for AA2. So AA2 has 5 -1 (4) inserted into the (?) in my code.
Ditto for AA1
Note: it is very possible that in some cases there may be no entries in AA..
Also - It is unknown what will be the cell used in AA a row count for last cell in AA may be required.
Can anyone assist?
i have this code -
range("A" & ?).select
Selection.ListObject.ListRows(?).Delete
I need to use this code as entirerow.delete or similar code will not work
In column AA - starting at cell 1 - i have cells with numbers ie AA1 has 3 AA2 has 5, AA3 has 20
So starting with the laste used cell (ie. in my example it is AA3) - I need 20 minus 1 so I need 19 inserted into the (?)
The process is then repeated for AA2. So AA2 has 5 -1 (4) inserted into the (?) in my code.
Ditto for AA1
Note: it is very possible that in some cases there may be no entries in AA..
Also - It is unknown what will be the cell used in AA a row count for last cell in AA may be required.
Can anyone assist?