Thread: [Solved] Using macro to delete styles
View Single Post
 
Old 10-10-2011, 03:42 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Windows 7 64bit Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 4,000
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default Source parameter...

The Source parameter must specify the name and path of the document or template containing the style you want to delete. For example, if the style is in the Normal template, you can use the following:

Code:
 
Application.OrganizerDelete _
Source:=NormalTemplate.FullName, _
Name:="style name here", _
Object:=0
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote