+ Reply to Thread
Results 1 to 5 of 5

Copy Column from one worksheet to another

Hybrid View

hemants Copy Column from one... 12-14-2010, 12:30 PM
stnkynts Re: Copy Column from one... 12-14-2010, 12:43 PM
hemants Re: Copy Column from one... 12-14-2010, 12:50 PM
stnkynts Re: Copy Column from one... 12-14-2010, 02:08 PM
hemants Re: Copy Column from one... 12-15-2010, 03:37 PM
  1. #1
    Registered User
    Join Date
    10-05-2004
    Location
    Scarborough, ON
    MS-Off Ver
    Mac Office 2019 v16.30 (19101301)
    Posts
    72

    Copy Column from one worksheet to another

    Morning All,

    need help developing a VBA that will copy a column from a DataDump to a next work sheet

    trying to make so it does it in the background without having to keep flipping back and forth between worksheets

    attached is a sample of the data

    Sheet 1
    This is where the sorted date will be stored

    Sheet 2
    lite version of the datadump from my client db and this is where I would like to grab the info from
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy Column from one worksheet to another

    need help developing a VBA that will copy a column from a DataDump to a next work sheet
    Which column in sheet 2 do you want to copy?
    Where does it need to go in sheet 1?

  3. #3
    Registered User
    Join Date
    10-05-2004
    Location
    Scarborough, ON
    MS-Off Ver
    Mac Office 2019 v16.30 (19101301)
    Posts
    72

    Re: Copy Column from one worksheet to another

    The headings in Sheet1 match the dump in Sheet2
    copy the matching column from Sheet2 to Sheet1

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy Column from one worksheet to another

    Sorry for the delay.

    Let me know if this works
    Sub CopyDataDump()
    
    Sheets("Sheet1").Range("A:A").EntireColumn.Value = Sheets("Sheet2").Range("P:P").EntireColumn.Value
    Sheets("Sheet1").Range("C:C").EntireColumn.Value = Sheets("Sheet2").Range("M:M").EntireColumn.Value
    Sheets("Sheet1").Range("D:D").EntireColumn.Value = Sheets("Sheet2").Range("B:B").EntireColumn.Value
    
    End Sub

  5. #5
    Registered User
    Join Date
    10-05-2004
    Location
    Scarborough, ON
    MS-Off Ver
    Mac Office 2019 v16.30 (19101301)
    Posts
    72

    Re: Copy Column from one worksheet to another

    Thx, that works perfectly

+ 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