+ Reply to Thread
Results 1 to 2 of 2

[SOLVED] Macro to copy Column 1 of all sheets to a seperate sheet.

  1. #1
    Rajula
    Guest

    [SOLVED] Macro to copy Column 1 of all sheets to a seperate sheet.

    Hi,

    Can somebody help me create a macro to copy COLUMN 1 of all sheets in a
    workbook(there are about 12 sheets) into another sheet??

    Cheers
    Rajula

  2. #2
    Tom Ogilvy
    Guest

    RE: Macro to copy Column 1 of all sheets to a seperate sheet.

    Sub CopyData()
    Dim bk as workbook, sh as worksheet
    Dim i as Long, rng as Range
    set bk = Workbooks("SourceData.xls")
    set sh = Workbooks("Summary").Worksheets(1)
    i = 1
    for each sh in bk.Worksheets
    set rng = sh.Columns(1)
    rng.copy Destination:=sh.Columns(i)
    i = i + 1
    Next
    End sub

    --
    Regards,
    Tom Ogilvy



    "Rajula" wrote:

    > Hi,
    >
    > Can somebody help me create a macro to copy COLUMN 1 of all sheets in a
    > workbook(there are about 12 sheets) into another sheet??
    >
    > Cheers
    > Rajula


+ 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