+ Reply to Thread
Results 1 to 7 of 7

Copy and Paste as Values using Command Button

  1. #1
    Registered User
    Join Date
    04-13-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    94

    Copy and Paste as Values using Command Button

    Hello, how to make a code for copying from a specific cell and paste it in other cell as values.

    my cells to copy are fixed ( K1,L1,K2,L2 )
    my cells to be pasted as values ( A1,B1,C1,D1 )

    after executing the command button, values from ( K1,L1,K2,L2 ) will automatically paste in ( A1,B1,C1,D1 ) After changing the values again in ( K1,L1,K2,L2 ) and executing the button the values will be in (A2,B2,C2,D2). and if repeated click of button it will fill downwards.

    Thanks in advance
    Last edited by macky1730; 03-08-2011 at 03:58 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Copy and Paste as Values using Command Button

    Hi,
    Find the attached with code.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-13-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Copy and Paste as Values using Command Button

    yey! thanks, simple code and editable. i can add my own and modify it for my convinience in the future . rep added

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Copy and Paste as Values using Command Button

    If you wanted to copy to a different sheet try this code:
    Please Login or Register  to view this content.
    Watch out for those darn periods.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-13-2009
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Copy and Paste as Values using Command Button

    thanks again, now im pretty sure it was an Aprove comment in your reputation

  6. #6
    Registered User
    Join Date
    10-04-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Copy and Paste as Values using Command Button

    but how to start pasting from cell A5 for exaample

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy and Paste as Values using Command Button

    @ Amoursi

    Welcome to the forum.

    Unfortunately you have to start a new thread for this,


    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

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

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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