Results 1 to 3 of 3

Re arrange columns from selected rows

Threaded View

  1. #1
    Registered User
    Join Date
    02-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re arrange columns from selected rows

    All,
    I am attaching an excel file. It also contains the macro needed for "Click Here" button
    Sub Possible_Answer()
        Dim i As Long
        Dim copyRows As Range
    
        With Sheets("Sample Problem")
    
            For i = 7 To 13
                If .Range("C" & i).Value = "Jane Fake" Then
                    If copyRows Is Nothing Then
                        Set copyRows = .Rows(i)
                    Else
                        Set copyRows = Union(copyRows, .Rows(i))
                    End If
                End If
            Next
    
            If Not copyRows Is Nothing Then
                copyRows.Copy Sheets("Sample Problem").Rows(18)
            End If
        End With
    End Sub
    But I need to re-arrange few columns to fit the target table.

    Any help would be appreciated

    Thanks in advance
    Steve
    Attached Files Attached Files

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