LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using Relative Addresses to Select Columns

I want to to select the next 5 columns after the current cell. the next 5
columns will change week by week.

Absolute cell references work say

Columns("Q:U").Select

What I can't find a way to do is use relative addresses eg

Columns("C[1]:C[6]").Select

I tried variations on the syntax but all without success. All get various
syntax or type mismatch errors

Any ideas?

regards
Andrew
 
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
Select range using row and column number addresses NDBC Excel Discussion (Misc queries) 4 July 22nd 09 06:51 AM
Macro - getting relative cell addresses to flow down Chris Excel Discussion (Misc queries) 1 August 25th 06 09:27 PM
How do I record a macro with relative cell addresses? Tony IA Excel Discussion (Misc queries) 1 October 28th 05 04:55 PM
How do I change a macro to use relative cell addresses? Roger D Excel Discussion (Misc queries) 2 July 30th 05 07:35 PM
How do I change a Macro to use relative cell addresses? Roger D Excel Discussion (Misc queries) 1 July 30th 05 07:00 PM


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