+ Reply to Thread
Results 1 to 4 of 4

creating a list from a table

Hybrid View

  1. #1
    Registered User
    Join Date
    09-17-2009
    Location
    Alabama
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: creating a list from a table

    Thanks, JBeaucaire. I've added the attachment

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: creating a list from a table

    Try this:
    Sub x()
    
    Dim rng As Range, n As Long
    
    With Sheet1
        n = .Range("B4", .Range("B4").End(xlDown)).Rows.Count
        For Each rng In .Range("C3", .Range("C3").End(xlToRight))
            rng.Copy Sheet2.Cells(Rows.Count, "B").End(xlUp)(2).Resize(n)
            .Range("B4").Resize(n).Copy Sheet2.Cells(Rows.Count, "C").End(xlUp)(2)
            rng.Offset(1).Resize(n).Copy Sheet2.Cells(Rows.Count, "D").End(xlUp)(2)
        Next rng
    End With
    
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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