+ Reply to Thread
Results 1 to 5 of 5

Need help with paste special in VBA Macro

  1. #1
    Forum Contributor
    Join Date
    03-18-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    139

    Need help with paste special in VBA Macro

    Hey guys,

    I have little knowledge on Macros in excel. I found this macro that I use to copy the content from another workbook to the current one. With trial and error, I made it work.

    Please Login or Register  to view this content.

    However I want it to paste special Values (not the formula). How do I adjust it?

    Thank you so much in advance.
    Last edited by JBeaucaire; 03-20-2013 at 02:50 PM. Reason: Added code tags, as per forum rules. Don't forget!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need help with paste special in VBA Macro

    To do paste special, the copy and paste needs to be done in 2 lines.

    So instead of
    Please Login or Register  to view this content.
    It would be
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 03-20-2013 at 02:53 PM. Reason: Added code tags, as per forum rules. Don't forget!

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need help with paste special in VBA Macro

    You're copying and pasting in the same line of code, so that makes it a full copy/paste. To copy and paste values, you'll need to switch to a separate PASTE command.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor
    Join Date
    03-18-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Need help with paste special in VBA Macro

    This is awesome and works great. Thank you for your help!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need help with paste special in VBA Macro

    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ 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