+ Reply to Thread
Results 1 to 5 of 5

Copying Columns and Pasting in New Sheet

  1. #1
    Registered User
    Join Date
    01-11-2010
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    38

    Copying Columns and Pasting in New Sheet

    I am trying to copy the data in two columns to a new sheet in the same workbook. The size of the columns can change. One column is called "Data" and the other is called "Schedule". I will be importing the data from "Data" to "Schedule". Here is what I tried earlier for just column A, but it did not work.

    FinalRow = Cells(Rows.Count, 1).End(xlUp).Row
    Sheets("Data").Cells(A,FinalRow).Copy
    Sheets("Schedule").Range(A2).Paste

    Any suggestions? Thanks.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Copying Columns and Pasting in New Sheet

    Try:

    Please Login or Register  to view this content.
    Dom
    Last edited by Domski; 02-01-2010 at 10:03 AM. Reason: Code correction
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    01-11-2010
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Copying Columns and Pasting in New Sheet

    I just tried that and I am getting an error 400 message.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Copying Columns and Pasting in New Sheet

    Small correction:

    Please Login or Register  to view this content.
    Dom

  5. #5
    Registered User
    Join Date
    01-11-2010
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Copying Columns and Pasting in New Sheet

    That worked perfectly! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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