+ Reply to Thread
Results 1 to 3 of 3

Mcros conflict, Force Paste Special

  1. #1
    Registered User
    Join Date
    04-10-2010
    Location
    Abu Dhabi, UAE
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    148

    Lightbulb Mcros conflict, Force Paste Special

    Hi all,

    I am using the macro below to force user to use paste values, and it works well. However, when I have to run another macro includes copy/paste-special-values, I cannot due to the "UNDO" command.

    Is there anything I can add to this macro below to allow other macros to run normally:

    Please Login or Register  to view this content.
    Cheers
    Ralem

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Mcros conflict, Force Paste Special

    Hi, Ralem,

    if itīs a wanted action you will take via another macro you could disbale events for the run of teh macro and enable them thereafter:
    Please Login or Register  to view this content.
    Make sure that the events are being turned on at the end of teh macro.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Mcros conflict, Force Paste Special

    You don't need the Undo command.
    The macro overrides the paste formula with the paste value anyways.

    This version should work for normal copy/paste as well as if copy/paste is triggered by another macro.

    Please Login or Register  to view this content.
    Regards,
    Rudi

+ 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. Force Paste Special --> Values in a worksheet
    By vofstein in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-08-2013, 01:29 PM
  2. force paste comands to paste>special>values
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-08-2013, 09:04 AM
  3. [SOLVED] how can I paste text using paste special, without clicking paste button?
    By Exxcel Noob in forum Excel General
    Replies: 6
    Last Post: 05-14-2012, 08:21 PM
  4. A way to force paste special values
    By pdauction in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2011, 06:39 AM
  5. Force Paste Special Only
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2010, 03:55 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