Consulting

Results 1 to 2 of 2

Thread: Solved: Iterate through columns

  1. #1
    VBAX Regular
    Joined
    Jul 2008
    Posts
    47
    Location

    Solved: Iterate through columns

    Hi,

    I wish to iterate through each column on row 1, for example A1, B1, C1 etc.

    Is there a simple way to do this?

    Thanks
    Gary

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    For i = 1 To 3
    With Cells(1,i)
    'do something
    End With
    Next i
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •