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: 4,393
Default Increasing alphabectically

You could use index values rather than the A1 convention
In the sub below, first the values in B2:E2 are displayed,
then the ranges B3:B5, C3:C5, D3:D5 and E3:E5 are given a colour fill

Sub tryme()
For J = 2 To 5
MsgBox Worksheets("Sheet1").Cells(2, J)
Set myrange = Worksheets("Sheet1").Range(Cells(3, J), Cells(5, J))
myrange.Interior.ColorIndex = J + 5
Next J
End Sub


hope this helps
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"HarryGuy" wrote in message
...
Windows XP and Excel 2003

The first time through the program should read:

With Active Sheet
.First = Sheets("Rates").Range("B2")
.Second = Sheets("Rates").Range("B3:B186")
End With

The next time through the Ranges should read "C2" and "C3:C186"

Then next time "D2" and "D3:D186" and so on until it reaches "X2"and
"X3:X186"

Can someone suggest a good way to do this. Please.




 
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
Increasing Row Value [email protected] Excel Programming 1 November 20th 07 11:16 PM
Increasing the Sheet # Please Help Excel Programming 2 June 8th 07 02:59 PM
Increasing the row count Gord Dibben Excel Programming 0 December 1st 06 11:20 PM
Increasing by a percent Nicole Excel Discussion (Misc queries) 1 October 10th 06 08:50 PM
Increasing M in M/D/Y Bill45 Excel Discussion (Misc queries) 2 May 19th 05 06:32 PM


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