+ Reply to Thread
Results 1 to 7 of 7

Simple Copy and Paste Command Button

  1. #1
    Registered User
    Join Date
    09-23-2013
    Location
    Washington State
    MS-Off Ver
    Excel 2010
    Posts
    5

    Simple Copy and Paste Command Button

    Excel Forum

    I'm having a devil of a time getting this to work but here is the scenario:

    I have a command button at the top of Sheet1; when I click on the command button I want it to copy A3:M6 on the same sheet and paste it starting at the next empty row, on the same sheet. If I record a simple copy and paste macro, it just pastes the new entry over the next one down.

    All help appriciated.

    Gideon

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Simple Copy and Paste Command Button

    Hello j_gideon,

    Try this code...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    09-23-2013
    Location
    Washington State
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Simple Copy and Paste Command Button

    Works great, now how do I add the cell formating and borders? Thanks.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Simple Copy and Paste Command Button

    Hello j_gideon,

    Just need to change the last line of the code.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-23-2013
    Location
    Washington State
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Simple Copy and Paste Command Button

    That did it, I updated your reputation, perfect solution. Thanks.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Simple Copy and Paste Command Button

    Hello Hello j_gideon,,

    Thanks and you're welcome. The first example is very fast for copying large data sets especially when you have the columns cell formats already set. You may find this useful in the future.

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Simple Copy and Paste Command Button

    @ Leith Ross,

    Glad the OP got it.

    Kind Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

+ 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. Copy and Paste as Values using Command Button
    By macky1730 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2013, 02:18 AM
  2. [SOLVED] Problems with copy and paste working with a command button.
    By Spreadlover in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-14-2013, 05:58 AM
  3. Command button to add rows, copy and paste formulas, and format.
    By seankuus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 08:37 PM
  4. [SOLVED] How to execute a Command Button (simple)
    By cronshd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 02:05 PM
  5. copy and paste data from one worksheet cell to another using command button
    By jasonruiz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2011, 04:34 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