+ Reply to Thread
Results 1 to 2 of 2

I need a way to force Paste-Values when pasting to an Excel cell

  1. #1
    Registered User
    Join Date
    01-26-2021
    Location
    TX, USA
    MS-Off Ver
    2008
    Posts
    2

    I need a way to force Paste-Values when pasting to an Excel cell

    Hello,

    I found the macro below on an earlier thread in this forum. It works well when I copy and paste from an excel spreadsheet. However, when I try to copy from WORD or a website, the data does not paste to the target cell in my spreadsheet (it's as if the data is lost before the final paste values statement in the macro). The macro does execute the same lines of code whether the source is from a spreadsheet or not.


    Please Login or Register  to view this content.

    Does anyone, know what changes could be made to this macro to allow the paste to use input copied from sources other than a spreadsheet, but still retain the formatting of the target spreadsheet cell?

    Thank you for your help.
    Last edited by Excel 4 Me; 01-27-2021 at 11:46 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: I need a way to force Paste-Values when pasting to an Excel cell

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

+ 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 users to ONLY do Paste Values?
    By Hambone70 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2016, 09:03 AM
  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. 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
  4. Force Paste Values
    By justbriman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-29-2008, 02:23 PM
  5. [SOLVED] How to force a paste of values only?
    By Joe HM in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2006, 08:06 PM
  6. How do I force values in a cell in excel?
    By Phyllis in forum Excel General
    Replies: 10
    Last Post: 02-09-2006, 01:35 PM
  7. Replies: 2
    Last Post: 11-17-2005, 04:00 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