Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cylecle all cells in worksheet

Status
Not open for further replies.

bont

Programmer
Sep 7, 2000
200
US
How can I cycle through a range of cells, where the range of cells is the entire worksheet not matter if only column is used or if every possible column and row is used?
 
Use
Code:
    Dim c As Range
    For Each c In Worksheets("Sheet1").Cells
        'Procees
    Next

There are 16,777,216 cells in each worksheet, so depending on what action you are performing it may be slow.

A.C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top