A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

PREVENTING FOREIGN STYLES COMING INTO WORD



 
 
Thread Tools Display Modes
  #1  
Old October 3rd, 2008, 03:20 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
Pedro
external usenet poster
 
Posts: 4
Default PREVENTING FOREIGN STYLES COMING INTO WORD

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



Ads
  #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




  #3  
Old October 3rd, 2008, 02:20 PM 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
Robert M. Franz (RMF)
external usenet poster
 
Posts: 1,743
Default PREVENTING FOREIGN STYLES COMING INTO WORD

Hello Pedro

Pedro wrote:
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. [..]


depending on the version of Word, you can also restrict the formatting
to your selection of styles. This works pretty good (it's not
bullet-proof because Word itself may seldom create direct formatting on
the go), but nothing else can be set -- the users are even unable to use
direct formatting.

HTH
Robert
--
/"\ ASCII Ribbon Campaign | MSFT |
\ / | MVP | Scientific Reports
X Against HTML | for | with Word?
/ \ in e-mail & news | Word | http://www.masteringword.eu/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.