+ Reply to Thread
Results 1 to 3 of 3

Horizontal then Vertical Loop help

Hybrid View

  1. #1
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Horizontal then Vertical Loop help

    Hi,

    Just the basic to hangout with For Loop...

    Sub test()
    Dim totrow As Long
    totrow = Range("a1").End(xlDown).Row
    For i = 2 To totrow
        For j = 6 To Cells(i, 5) + 6
            Cells(i, j) = Cells(i, "A") + j - 6
        Next j
    Next i
    End Sub
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  2. #2
    Registered User
    Join Date
    05-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Horizontal then Vertical Loop help

    Thank you very much Debraj Roy!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1