+ Reply to Thread
Results 1 to 4 of 4

Paste Special - Values Only

  1. #1
    Registered User
    Join Date
    11-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2007 & XP OS
    Posts
    22

    Paste Special - Values Only

    Working in one workbook, I am using sheet 1 as a master form and copying it to the back of the workbook and renaming it. Thx to some help here, the code below is working fine.

    Please Login or Register  to view this content.
    However, I am using data validation and a few formulas on sheet 1 and I do not want to copy these to the new sheet. I also need to restrict the copy and/or paste to Range A1:N58 from sheet 1. Seems I need a paste special inserted into the code to only paste the values. I think the paste code I need is below but I cannot get the placement right along with the range detail (A1:N58) that is needed. Thx for any help.

    Please Login or Register  to view this content.
    Last edited by dugar; 11-05-2009 at 11:29 AM.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Paste Special - Values Only

    Best way to learn how to create these macros is to record one and modify the macro as needed.
    Here's a macro I just recoded with your requirements.
    Try it, it's fun and it works.
    Select Tools>Macro>Record New Macro.

    modytrane



    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-06-2009
    Location
    NH, USA
    MS-Off Ver
    2010 & 2013
    Posts
    38

    Re: Paste Special - Values Only

    One thing to keep in mind when starting from a recorded macro is that you don't actually need to use SELECT to act on something.

    For example, the recorded macro can be condensed to:
    Please Login or Register  to view this content.
    Obviously, make sure the cleaned up code is still doing what you want it to, of course.
    Last edited by T.J. Lanza; 11-04-2009 at 10:58 AM. Reason: Cleaning code block.

  4. #4
    Registered User
    Join Date
    11-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2007 & XP OS
    Posts
    22

    Re: Paste Special - Values Only

    Many thx that did it! Sorry about the macro recorder - I should know better.

+ 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