Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
WildGlio
 
Posts: n/a
Default Method of selecting an area with a macro

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!!
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

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

in your code,

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

"WildGlio" wrote:

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!!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro and sub rountines The Good Deeds Team Excel Discussion (Misc queries) 1 March 23rd 05 11:26 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"