Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2005

Tip: Looking for answers? Try searching our database.

Why is reapplying style different from applying style

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Al - 31 May 2005 19:35 GMT
I have a question that may not be VBA related but this is where you real
experts are and I did not get a good answer in another group.

Must I lose Font (character) formatting when reapplying style??
I have superscripts (exponents).  When I change style of the paragraph from
Normal to Text they remain.  However, if I reapply Text style to the
paragraph, the superscripts become normal text. (Text is a paragraph style.  
It is defined:  Normal + Line spacing: at least 14 pt Space before: 6 pt).
This occurs on the second application of all styles EXCEPT Normal.  
Reapplying Normal retains the superscripts.  If I make a word italics and
apply Heading 4, the italics remain.  If I apply Heading 4 again, the
italics disappear. How do I make the other styles act like Normal and not
lose character formatting when reapplied?
I am using Word 2002
Klaus Linke - 31 May 2005 20:05 GMT
Hi Al,

Sorry for not getting back to you in that other group.

I guess you select the paragraph before you apply the style?
You won't have the problem if you don't select it... and that's why I never ever noticed it.

I hate the way the programmers have added all kinds of AutoFormatting gizmos to the simplest commands.
If I record applying some style to a selected paragraph twice, I get
 Selection.Style = ActiveDocument.Styles("Heading 4")
 Selection.Style = ActiveDocument.Styles("Heading 4")
and the formatting isn't lost (?!?).
No idea at all why someone at MS thought it would make sense to remove manual formatting the second time around.

And there's probably no hidden setting to change that weird behaviour. But since selecting the paragraph is additional work anyway, maybe you can get used to not doing that?

Greetings,
Klaus

>I have a question that may not be VBA related but this is where you real
> experts are and I did not get a good answer in another group.
[quoted text clipped - 10 lines]
> lose character formatting when reapplied?
> I am using Word 2002
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.