+ Reply to Thread
Results 1 to 3 of 3

how to set copy/paste for only values

  1. #1
    Registered User
    Join Date
    11-11-2004
    Location
    Czech Republic
    MS-Off Ver
    Excel 2016 for Windows 10
    Posts
    22

    how to set copy/paste for only values

    Hi,

    I have problem, that users insert to the table cells from different sheet (it will be allways done manually - ctrl+C and ctrl+V), problem is, that they copy formating as well and destroy the table. Is there possibility to pre-set for Copy/Paste xlPasteValues for the whole book? For example macro in Workbook.open? It's in Excel 2016/2019.

    Thank You for tips.

    Martin

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: how to set copy/paste for only values

    Try this code in this workbook;
    Please Login or Register  to view this content.
    It will paste whatever is in the paste buffer (i.e. without Ctrl+V), but will maintain original cell format.

  3. #3
    Registered User
    Join Date
    11-11-2004
    Location
    Czech Republic
    MS-Off Ver
    Excel 2016 for Windows 10
    Posts
    22

    Re: how to set copy/paste for only values

    Thank You Croweather. It works, that it insert automaticaly the buffer to the cell, which I select. I would need, that it works this way but not automaticaly, I can select the right cell and than if I use Paste (on right mouse click&paste or menu&paste or Ctrl+V), because here if the user click on false cell, it insert the buffer imediately (can be wrong). But I didn't found the right private sub. Something like Private sub Workbook_BeforePaste.

+ 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. Copy Paste Issue Merge Cell & Paste Values other Column
    By majidsiddique in forum Excel General
    Replies: 12
    Last Post: 04-28-2020, 01:07 AM
  2. Autofill Copy and Paste , Cant copy/paste the values
    By fluffyvampirekitten in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2015, 06:10 AM
  3. Copy Formulas and Paste into the Last Set # of Rows Only & Paste Values
    By Mr. Ice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 07:48 AM
  4. copy formula and paste for new data added and autofill.....and paste special values
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2014, 07:40 AM
  5. Copy and paste code pasting won't paste just values
    By thehotbreadguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2013, 11:12 PM
  6. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  7. VBA Copy-paste values with changing paste location
    By booost in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2012, 10:39 AM

Tags for this Thread

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