Method of selecting an area with a macro

W

WildGlio

I have designed a form which at one point needs to be able to have additional
formatted rows inserted. I have created a reference row and can select it by
Ctrl G etc, but I actually want to select the row two rows above this
reference row which will change every time I add a row. I then copy this row
and select Insert Copied Cells.
This must be possible? Please!!
 
D

Duke Carey

give your reference row a range name, eg "RefRow"

in your code,

Range("RefRow").Copy
Range("RefRow").Offset(-2, 0).Insert Shift:=xlDown
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top