VBA Code for Arrow


Posted by Piet van Dijk on January 06, 2000 5:15 AM

Hi,
I barely dare to ask, but could anyone tell we wat de VBA code for the down arrow is?

I want to make a macro:
loop
if current cell empty?
if yes then delete and move contens to the left
down
end loop

tia



Posted by Ivan Moala on January 06, 2000 3:08 PM

Hi Piet
Use (and lookup Online help) the OffSet(row,column)
eg in your example to move left = column shift-1
and down = Row shift +1
then Cells.Offset(1,-1)


Ivan