Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Thu, 17 Jul 2008 06:38:03 -0700,    group: microsoft.public.word.vba.beginners        back       


Removing Specific Styles   
Anyone have code to remove specific stlyes from a document?

I created a Macro to modify the name of the Style, but need to remove the 
old from the list, but only specific styles.

Thanks!
date: Thu, 17 Jul 2008 06:38:03 -0700   author:   Krumrei

RE: Removing Specific Styles   
Here is the code I added.  However, I need to know what to do, if the Style 
does not exsist in the list, how to skip to the next one without bombing the 
program?

ActiveDocument.Styles("Body Text_ACSSC").NameLocal = "Body Text_ACS"
ActiveDocument.Styles("Body Text_ACSSC").Delete







"Krumrei" wrote:

> Anyone have code to remove specific stlyes from a document?
> 
> I created a Macro to modify the name of the Style, but need to remove the 
> old from the list, but only specific styles.
> 
> Thanks!
date: Thu, 17 Jul 2008 08:07:02 -0700   author:   Krumrei

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us