+ Reply to Thread
Results 1 to 2 of 2

how to get a simple macro to copy and paste values only

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    545

    how to get a simple macro to copy and paste values only

    i want a shortcut to paste values. the normal method is copy something and click paste options paste values.but is there a way to do it fast? can we use a simple macro?on one sheet named 'basic' i would make a selection .should copy the values only.

    Let me make it more clear.I will just select a range in one sheet.I will not go for "copy". go to another sheet. click on a cell.run the macro and i get the values pasted. thanks.If it is necessary to give a cell address from where it should paste in sheet named values "R3".but it is not advisable to include a cell in the macro.in that case i have to edit the macro every time i change the destination cell.thanks

    why this macro gives error message?

    Runtime error'1004'

    Pastespecial method of range class failed.

    Sub PasteVal()
    Selection.PasteSpecial Paste:=xlValues
    End Sub


    this macro also gives error messge error '9'
    subscript out of range.i clicked on the cell r3 in the destination sheet and run the macro.
    ---------------------------------
    Sub PasteVal()
    Selection.Copy
    Sheets("values").Range("A1").PasteSpecial xlPasteValues
    End Sub
    Last edited by sumesh56; 03-24-2014 at 09:53 PM.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: how to get a simple macro to copy and paste values only

    Before you can expect an answer, read up about the rules for this forum.
    Pay special attention to "using code tags". (#3 under Forum Rules)
    Last edited by jolivanes; 03-24-2014 at 11:16 PM.

+ 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. Help with simple Copy/Paste macro please!!
    By rodgersmg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2014, 09:00 AM
  2. Simple copy/paste macro
    By Katsdog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2013, 11:49 AM
  3. [SOLVED] Simple copy and paste macro- Paste special help needed.
    By hernancrespo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 07:02 AM
  4. [SOLVED] Simple copy and paste macro
    By hernancrespo in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-08-2012, 08:16 AM
  5. Simple Copy Paste Macro
    By NavSingh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-02-2007, 11:11 PM

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