+ Reply to Thread
Results 1 to 7 of 7

Command button to copy cells from one sheet and paste in second sheet

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    15

    Command button to copy cells from one sheet and paste in second sheet

    Hello,

    I'm trying to create a command button on my sheet that when clicked will find all rows in column u that read Engineering Evaluation and then copy certain cells from that row to another sheet. The kicker is that this button will be used over and over again as more entries are entered into the log. I only want each row counted once. Right now I get a run time error for the "For Each Cell In Application.Intersect(Range("u:u"), target)" line.

    Any help would be great. Thanks.


    Please Login or Register  to view this content.

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

    Re: Command button to copy cells from one sheet and paste in second sheet

    Does the "another sheet" need to have historical data or can it be a current representation of the data in the primary sheet?

    Do you have a header in row 1?

    Is it always Column C, G, H, I, K, R, S, and V which you need to transfer data from?

  3. #3
    Registered User
    Join Date
    07-10-2014
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    15

    Re: Command button to copy cells from one sheet and paste in second sheet

    The another sheet is just a blank sheet, there will be aa header in row 1. Yes it will always be the same columns. Thanks.

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

    Re: Command button to copy cells from one sheet and paste in second sheet

    Let me see if I can simplify my first question for you. Can I delete the contents of the second sheet each time the command button is pressed and rewrite all the rows in column u of the primary sheet, or do you need to maintain a history of column u regardless of future changes.

  5. #5
    Registered User
    Join Date
    07-10-2014
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    15

    Re: Command button to copy cells from one sheet and paste in second sheet

    I would like to keep the historical data. Though if it just started over and searched all of u each time that would not be a problem.

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

    Re: Command button to copy cells from one sheet and paste in second sheet

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-10-2014
    Location
    chicago
    MS-Off Ver
    2010
    Posts
    15

    Re: Command button to copy cells from one sheet and paste in second sheet

    This was awesome. Thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] copy selected row and paste it to another sheet command button vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-22-2014, 03:22 AM
  2. [SOLVED] VBA Code to copy all data from sheet 1 and paste it to sheet5 using a command button
    By Angnz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-10-2013, 10:06 PM
  3. Copy cell content and paste into another cells in the same sheet using add button
    By Amoursi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2013, 02:28 AM
  4. Command button copy selection to another sheet
    By hlester in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2009, 03:11 PM
  5. copy yellow cells on sheet 'quote to sheet1 via a command button
    By lokechoiwun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2006, 08:32 AM

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