+ Reply to Thread
Results 1 to 8 of 8

Paste Special (Value) for my Code

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Perth, Australia
    MS-Off Ver
    Windows 7
    Posts
    85

    Paste Special (Value) for my Code

    Hi,

    Below is my code to copy from A1 and paste in B1. My problem is it is copying the cell's background color, which I don't require. So i need to somehow incorporate paste special (values) into the code, but every time I try this I get an error.

    Please Login or Register  to view this content.
    Any help will be appreciated.

    Thanks,

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Paste Special (Value) for my Code

    Just use PasteSpecial/Values. The only thing is it cannot be combined on 1 line like the COPY command...
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Paste Special (Value) for my Code

    Try this
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Paste Special (Value) for my Code

    Another:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-17-2014
    Location
    Perth, Australia
    MS-Off Ver
    Windows 7
    Posts
    85

    Re: Paste Special (Value) for my Code

    Dam, was hoping that there was a way of keeping it all on one line, like below or something. All good, thanks for both your help.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-17-2014
    Location
    Perth, Australia
    MS-Off Ver
    Windows 7
    Posts
    85

    Re: Paste Special (Value) for my Code

    Hi John, been using the code you have provided as well, but I have to put it into a loop for when I have a range of cells. Thanks though.

  7. #7
    Registered User
    Join Date
    12-17-2014
    Location
    Perth, Australia
    MS-Off Ver
    Windows 7
    Posts
    85

    Re: Paste Special (Value) for my Code

    Wait! John sorry just tried the below and it seemed to have worked, didn't think it would for a range, but it has. Thanks!!!

    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Paste Special (Value) for my Code

    You're welcome. Glad to help out.

+ 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. how to add paste special value in this code?
    By heihoiwin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2013, 07:23 PM
  2. VBA code for paste Special value
    By Kamal Asharaf in forum Excel General
    Replies: 1
    Last Post: 06-14-2012, 07:12 AM
  3. Paste Special in VBA code
    By freekrill in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-01-2009, 03:58 AM
  4. Paste special code
    By Lazypanda in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-21-2008, 07:51 AM
  5. need paste special value code
    By rslotpole in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2006, 02:27 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