Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Relative references to multiple selections

Try,

Range("D5").Select
ActiveCell.Offset(3, 1).Range(Cells(1, 1), Cells(3, 3)).Select

2nd question: Turn on the relative reference button on the Macro window
after starting to record a macro. You get for a simple cut and paste with
the active cell at (8,5) ....

ActiveCell.Offset(-8, -5).Range("A1:D4").Select
Selection.Copy
ActiveCell.Offset(4, 4).Range("A1").Select
ActiveSheet.Paste

Don't turn in on you get.....

Range("A1:D4").Select
Application.CutCopyMode = False
Selection.Copy
Range("E5").Select
ActiveSheet.Paste









"Lisa" wrote in message
...
When I use ActiveCell.Offset(row,column).Select, I am able
to select any cell in a position relative to the active
cell. I would like to know if it is possible to select
more than one cell at a time (or a range) that is put in a
position relative to the active cell. Also, is it possible
to record a macro that automatically uses relative
references instead of absolute references? Thank you.



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
relative references Rob Excel Discussion (Misc queries) 2 December 6th 08 08:10 PM
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
Help with converting a block of cells with Absolute and mixed references to relative references Vulcan Excel Worksheet Functions 3 December 13th 07 11:43 PM
Relative references gcotterl Excel Worksheet Functions 4 June 17th 06 05:23 AM
Relative references GARY Excel Discussion (Misc queries) 7 June 16th 06 10:08 PM


All times are GMT +1. The time now is 12:15 AM.

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"