Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Relative Values in a Macro

How do you select a range of cells with relative value instead of absolute values in a macro?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Relative Values in a Macro

This will select the cell in the next column:
Range("A1").Offset(0, 1).Select

This will select a region the same size as B5:G15 but offset 20 rows down.
Range("B5:G15").Offset(20, 0).Select



--
Rob van Gelder - http://www.vangelder.co.nz/excel


"DGernand" wrote in message
...
How do you select a range of cells with relative value instead of absolute

values in a macro?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Relative Values in a Macro

If it helps - when you record a macro you can choose (using the small toolbar that appears during recording) to alter the selection from relative to absolute. you can then copy the recorded code into your procedure...
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
Scatterpoot not using X values properly -- using relative ranking Eric_G Charts and Charting in Excel 4 March 12th 10 04:08 PM
Relative Values in Pivot Table James D. Sheehan Excel Discussion (Misc queries) 2 April 26th 08 03:46 PM
Absolute Values in Relative Cells Sarah Excel Worksheet Functions 3 July 30th 06 02:21 AM
Relative, absolute and mixed values Neita Excel Discussion (Misc queries) 0 August 17th 05 05:09 PM
Relative values and NAME beowulf Excel Worksheet Functions 1 December 27th 04 10:51 AM


All times are GMT +1. The time now is 03:07 AM.

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

About Us

"It's about Microsoft Excel"