Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to select a range of cells next to an active cell. My
activecell is named "EmptyCell", but the RC coordinates may change, so I can't refer to the active cell's RC values. How do I select the range starting at ActiveCell.offset(0,1) to ActiveCell.offset(10, 3) ? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there lookin,
Range(ActiveCell.offset(0,1), ActiveCell.offset(10, 3)).Select Although there is generally little need to actually Select/Activate anything whilst using VBA. Is there something you are trying to accomplish with this particular range? I think you've probably got some code already which you are using and this is probably part of a bigger solution. Can you post your code? -- Regards, Zack Barresse, aka firefytr To email, remove NOSPAM "lookin" wrote in message oups.com... I need to select a range of cells next to an active cell. My activecell is named "EmptyCell", but the RC coordinates may change, so I can't refer to the active cell's RC values. How do I select the range starting at ActiveCell.offset(0,1) to ActiveCell.offset(10, 3) ? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(10, 3)).Select -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "lookin" wrote in message oups.com... I need to select a range of cells next to an active cell. My activecell is named "EmptyCell", but the RC coordinates may change, so I can't refer to the active cell's RC values. How do I select the range starting at ActiveCell.offset(0,1) to ActiveCell.offset(10, 3) ? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks guys! I could swear I tried that, but I must have typed
something wrong - it's working now! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ActiveCell in a Range? | Excel Discussion (Misc queries) | |||
Select Activecell in Range | Excel Programming | |||
Name of range containing ActiveCell? | Excel Programming | |||
ActiveCell.End(xlDown).Select not working consistently | Excel Programming | |||
XP VBA: Range("A2", ActiveCell.SpecialCells(xlLastCell)).Select | Excel Programming |