+ Reply to Thread
Results 1 to 4 of 4

A way to force paste special values

  1. #1
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    A way to force paste special values

    Hi,

    I have a workbook that will be open to multi users. I have a lot of data validation and formatting etc that I want to retain. I have therefore added the following coding so the user can't delete any data validation and formatting.

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=373

    I will also add in code to this so they can't fill down and fill right at some point!

    The problem is, is that the users will sometimes probably want to paste quite a sizeable amount of data (from another source) into it rather than type each entry one at a time.

    The best way i could think to do this would be to add a button with the following code, which forces pastevalues.
    Please Login or Register  to view this content.
    The trouble is, is that as soon as I Activate my workbook to paste entries from another source it knocks of the cutcopymode off and so it doesn't work.

    I presume somewhere in the code in the link I provided the CutCopyMode goes to false.

    Can anyone please help or think of an alternative?

    Many Thanks
    Paul
    Last edited by pdauction; 12-07-2011 at 09:06 AM. Reason: tags

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: A way to force paste special values

    Then try detecting it

    Please Login or Register  to view this content.
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    Re: A way to force paste special values

    Hi,

    Thanks for the help.

    Unfortunately this still does not seem to work. I have now attached the relevant sheet. Not sure why the copy turns off nor why it ignores the application.cutcopymode request.

    Hope you can help further.

    Paul
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-07-2009
    Location
    Lytham, England
    MS-Off Ver
    Excel 2003+07
    Posts
    75

    Re: A way to force paste special values

    I have now sorted this buy changing the following...

    Please Login or Register  to view this content.
    To this

    Please Login or Register  to view this content.
    Simply put when CellDragandDrop was disabled this 'knocked' off what had been copied. I have therefore also had to add code elsewhere in my vba (worksheet change) to turn CellDragandDrop back off.

    Cheers
    Paul
    Last edited by pdauction; 12-07-2011 at 09:03 AM.

+ 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