
03-21-2008, 02:39 PM
|
|
Regular
|
|
Join Date: May 2007
Posts: 78
|
|
VB6 and Excel spreadsheet - Delete Unspecified range of cells
|
Hello everyone,
just one more thing on my spreadsheet manipulation: Currently I am hard-coding deletion of a range of cells. However, this range may change at any given time, in other words, there is no limited to where the data ends (number of records in the spreadsheet may vary).
For example, this is what I have now.
Code:
Rows("3:1972").Delete Shift:=xlUp
I want it to be dynamic - like so:
Code:
Rows("A3:?????").Delete Shift:=xlUp
Thanks in advance for any help.
tgif
|
|