Results 1 to 10 of 11

Thread: VBA To Separate One Long Row Data Into Multiple Rows Of Fixed Columns

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    14
    Use:

    Code:
    Sub M_snb()
        For j = 1 To Cells(1, Columns.Count).End(xlToLeft).Column Step 6
          Cells(j \ 6 + 2, 1).Resize(, 6) = Cells(1, j).Resize(, 6).Value
        Next
    End Sub
    Last edited by snb; 08-21-2013 at 02:08 PM.

  2. #2
    Junior Member
    Join Date
    Aug 2013
    Posts
    5
    Rep Power
    0
    Thank you snb. That worked perfectly. Everything copied below the first row exactly as it needed to be.

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0
    I have a similar problem as rxpsych even bigger as i have multiple such columns of patients data . But i dont know how to apply the code given here. can somebody explain the method of applying the code. Screenshots will be more helpful. Thanks in advance.

Similar Threads

  1. Replies: 6
    Last Post: 08-14-2013, 04:25 PM
  2. Replies: 3
    Last Post: 07-29-2013, 11:32 PM
  3. Replies: 4
    Last Post: 05-01-2013, 09:49 PM
  4. Replies: 2
    Last Post: 03-05-2013, 07:34 AM
  5. Replies: 2
    Last Post: 06-14-2012, 04:10 AM

Posting Permissions

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