Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ric ric is offline
external usenet poster
 
Posts: 11
Default Increasing a range in a loop

Cheers Tom.

Ric


"Tom Ogilvy" wrote in message
...
Sub Tester11()
Dim rng As Range, rng1 as Range
Dim i as Long
Set rng = Range("A1:Z5")
For i = 1 To 5
Set rng1 = rng.Offset((i - 1) * 5, 0)
MsgBox rng1.Address
Next

End Sub


--
Regards,
Tom Ogilvy



"ric" wrote in message
...
Is there a way to increase a range in a loop?

So "A1:Z5" would become "A6:Z10".

Regards

Ric






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
Loop through last cell/row of used range tkraju via OfficeKB.com Excel Discussion (Misc queries) 1 April 4th 09 04:45 PM
Pivot Tables-Source Range continually increasing CrimsonPlague29 Excel Worksheet Functions 2 August 8th 07 03:58 PM
Increasing the Source Data range for an existing Pivot Table Shams Excel Worksheet Functions 2 October 10th 06 05:22 PM
Increasing a range of grades available confused teacher Excel Worksheet Functions 4 August 21st 06 06:25 AM
3 range criteria for Loop hotherps[_47_] Excel Programming 0 April 14th 04 06:02 PM


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