in a dataset i use a loop to find a cell, and I want to delete and shift up that cell and 12 othter cells adjacent to it. Could I do it at once, or I have to create another loop to delete and shift each of 13 cells?
once you have found the cell, use RESIZE to resize the range and apply the delete/shift to that new range
e.g.
set fCell = Columns("A").find("TextToFind")
if not fCell is nothing then
fCell.resize(1,13).delete shift = whateveryourshiftis
...
...
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.