Results 1 to 12 of 12

Macro to Copy Second Column in all sheets to new sheet

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-20-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    171

    Macro to Copy Second Column in all sheets to new sheet

    hi

    please i need ur help,

    i want a macro to copy second column in all sheets (around 30 sheets in one excel file) to new sheet

    i used the following code

    Public Sub Example()
    Dim rngCopy As Range
    With Sheets("Sheet1")
        Set rngCopy = .Range(.Cells(1,"B"),.Cells(.Rows.Count,"B").End(xlUp))
    End With
    With Sheets("SUMMARY")
        .Cells(1,.Columns.Count).End(xlToLeft).Offset(,1).Resize(rngCopy.Rows.Count).Value = rngCopy.Value
    End With
    End Sub
    but this one will copy second column from specific sheet to specific sheet and will over-write the copied columns, i want to copy second column from all sheets to one new sheet (must be created with macro) with paste as value only.

    and all copied columns in the recently created sheet should be continuously, means

    second column from first sheet
    1
    1
    1
    1
    1
    1

    then

    second column from second sheet
    5
    4
    68
    4
    8
    8
    4
    4

    then

    second column from third sheet
    54
    787
    4645
    13258
    879
    34654


    sorry for the long thread
    many thanks in advance
    Last edited by boss1982; 12-29-2012 at 10:06 AM.

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