Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Offset Ranges

How do you define a Range based on where the current ActiveCell to 5 Cells to
the Right? Obviously I don't know where the ActiveCell is either Column or
Row?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Offset Ranges

Hi

This should do what you want:

Set TargetRange = Range(ActiveCell, ActiveCell.Offset(0, 5))

Regards,
Per

"Martin" skrev i meddelelsen
...
How do you define a Range based on where the current ActiveCell to 5 Cells
to
the Right? Obviously I don't know where the ActiveCell is either Column or
Row?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Offset Ranges

Per

Thanks, that pointed me in the right direction

Martin

"Per Jessen" wrote:

Hi

This should do what you want:

Set TargetRange = Range(ActiveCell, ActiveCell.Offset(0, 5))

Regards,
Per

"Martin" skrev i meddelelsen
...
How do you define a Range based on where the current ActiveCell to 5 Cells
to
the Right? Obviously I don't know where the ActiveCell is either Column or
Row?

Thanks



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
Name groups of .offset ranges JMJ Excel Programming 1 December 21st 08 03:05 PM
Dynamic Ranges and Offset RFJ Excel Worksheet Functions 3 August 29th 06 03:20 PM
How do I calculate an offset between two ranges? mo childs Excel Programming 4 October 19th 05 11:27 AM
Using Offset with named ranges StanJ Excel Worksheet Functions 5 September 2nd 05 09:07 AM
Ranges using offset Fatir Zelen Excel Programming 11 April 24th 04 11:15 PM


All times are GMT +1. The time now is 05:53 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"