Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way...
Sub test() Dim rngToSearch As Range Dim rng As Range Set rngToSearch = Range("B14:G14") Do While rngToSearch.Row <= 45 For Each rng In rngToSearch MsgBox rng.Value Next rng Set rngToSearch = rngToSearch.Offset(1, 0) Loop End Sub -- HTH... Jim Thomlinson "Curious" wrote: I have an excel file containing a section from column B to column G, and from row 14 to row 45. How can I loop through each row then each column to get the cell value? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
looping through columns and rows | Excel Programming | |||
looping through rows and columns | Excel Discussion (Misc queries) | |||
Looping macro needed to find intersections of rows and columns | Excel Programming | |||
Looping through Columns then Rows | Excel Programming | |||
syntax for relative cell change and looping | Excel Programming |