Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Delete variable range when cell is emtpy
Hi all,
I am trying to delete a range that will vary depending on how much data is in a previous column. For instance I have a data tab that has a query on it. I never know how much data will come from that query but I do know that I when there is no data at the bottom of the query I would like to delete the five cells to the right of it down to the bottom of the page. This is what I have so far, but I don't know how to insert a variable into a range. x = 7 Do while Sheets("Data").Cells(x, 43) = "" Range("x, 48").Select -- (Not sure on this part) Selection.Delete Shift:=xlUp x = x+1 Loop |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Recognize first emtpy Cell in column | Excel Programming | |||
emtpy cell | Excel Programming | |||
Delete all Rows in a Variable Range | Excel Programming | |||
insert amount into first emtpy cell | Excel Programming | |||
Hide row when cell is emtpy | Excel Programming |