View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
missy[_2_] missy[_2_] is offline
external usenet poster
 
Posts: 2
Default Macro to line up rows

Hi,

Please help:

How do I write a macro that will line up the rows if for example cells
A5 = D7.

That is, if cell A5 is the same as cell D7, then I want to:
Range("A5:C6").Select
Selection.Insert Shift:=xlDown

I want to do this for all values in column A starting with A5.

Thank you.