Consulting

Results 1 to 4 of 4

Thread: restricting copy paste so it won't copy formatting

  1. #1

    restricting copy paste so it won't copy formatting

    I'm looking for a way to restrict copy/paste so it will never copy the formatting in the workbook i'm using.

    this is so the users of the document can copy, but cannot mess up the formatting. Itried this with protecting the sheet, but the unprotected cells will accept a copied format.

    Does anyone know what I can do about this?

  2. #2
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,286
    Location
    You'll have to trapp the keys (using onkey) that are used to copy and paste, also the menu items and button items. Than you'll have to write your own copy and paste routines using [VBA]ActiveCell.Copy[/VBA] and[VBA]Activecell.PasteSpecial xlPasteValues[/VBA]

  3. #3
    Hmm, that requires figuring out beforehand what they will try to copy where?

    Isn't there a general thing?

  4. #4
    Ah I understand what you try to explain:

    disable the rightclick paste etc and then create new routines that do so. hmm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •