Results 1 to 6 of 6

Repeating loop till no values remain

Threaded View

  1. #1
    Registered User
    Join Date
    05-30-2014
    Posts
    2

    Repeating loop till no values remain

    I am trying to complete a data transformation where all my reords are in a singel colum and contain 4 rows for each. I want to transpose the 4 rows in colum A to 1 row with 4 columns starting in cell C1 and inserting the repeated row offset by 1 row (i.e. cell c2) I have created the base function that I want to accomplish, but am having difficulty setting up the loop. See code below...

    Thanks,
    Scott

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    ' Base function
    
        Range("A1:A4").Select
        Selection.Copy
        Range("C1").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=True
        Range("A1:A4").Select
        Application.CutCopyMode = False
        Selection.Delete Shift:=xlUp 
    
    ' need to repeat until column A does not have any values
    Last edited by 6StringJazzer; 05-30-2014 at 01:08 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Loop till last row
    By reincarnation.x in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2013, 08:02 AM
  2. [SOLVED] Loop till end of the sheet and loop back to first column again
    By smlim7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2012, 10:03 AM
  3. [SOLVED] How to remain initial cell value after loop
    By alee001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2012, 01:09 PM
  4. [SOLVED] How to loop till last row with data?
    By btmtdk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2012, 10:37 AM
  5. SUMIF and LOOP till the last row
    By georgeanaprop in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2010, 02:26 AM

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