Results 1 to 4 of 4

Loop Help please

Threaded View

bimo Loop Help please 03-28-2015, 08:29 AM
MickG Re: Loop Help please 03-28-2015, 08:52 AM
bimo Re: Loop Help please 03-28-2015, 02:53 PM
fredlo2010 Re: Loop Help please 03-28-2015, 09:01 AM
  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    211

    Loop Help please

    hello

    is there a more effescient way of doing the below macro ?

    I am trying to transpose lines, please see attached file ?

    Thank you




    HTML Code: 
    Sub TestVariable2()
    
        Dim i As Integer
        Dim j As Integer
        Dim z As Integer
        
        For i = 0 To 4
            For j = 6 To 10
                For z = 11 To 15
                        
           Cells(i + 1, 1).Value = Range("C1").Value
           Cells(j, 1).Value = Range("C2").Value
           Cells(z, 1).Value = Range("C3").Value
                Next z
            Next j
        Next i
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find function in nested loop breaking down - not on first time through loop
    By adamstarr12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2014, 04:59 PM
  2. Loop through multiple files and call macros (but unable to loop)
    By ryanpetersen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2014, 12:04 PM
  3. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  4. Why did an inner loop variable start overwriting the outer loop range suddenly?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2012, 03:24 PM
  5. Replies: 0
    Last Post: 07-20-2010, 11:42 AM

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