View Single Post
  #2  
Old October 3rd, 2008, 07:11 AM posted to microsoft.public.word.conversions,microsoft.public.word.customization.menustoolbars,microsoft.public.word.docmanagement,microsoft.public.word.formatting.longdocs,microsoft.public.word.newusers,microsoft.public.word.pagelayout
Stefan Blom
external usenet poster
 
Posts: 8,433
Default PREVENTING FOREIGN STYLES COMING INTO WORD

You can use the following macro in an add-in to intercept the paste command:

Sub EditPaste()
On Error Resume Next
Selection.PasteSpecial datatype:=wdPasteText
End Sub

--
Stefan Blom
Microsoft Word MVP



"Pedro" wrote in message
...
Hello Team,

I have created some templates for our staff to use and everything works
very well. None of the styles are auto update and they are based on "no
other style" which means I update each end every one individually if I
need to. Thats the way I want it.

What I can't do is prevent users from bringing in external styles when
they "cut & paste" stuff into the documents. Pretty soon the styles area
looks like a shambles with all sorts of styles that I have not created.

I'd like people to be able to paste text in, and despite me telling them
to convert their source to "TEXT ONLY" before pasting, they want to
preserve their original tables, drawings and other items, so they still
manage to inundate the styles panel with rubbish.

Any ideas on how to prevent external styles being pasted in.

Cheers

Peter