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 / September 2007

Tip: Looking for answers? Try searching our database.

Macro for "Select all Similar Formatting"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rae_T - 27 Sep 2007 22:21 GMT
I am trying to write a macro to record what I thought were fairly simple
steps (below) - but am having no success.  Any help would be greatly
appreciated.

1.    Edit, Find, Clear this screen by clicking on No Formatting, click
on Format, Style, choose CCE Bullet2 (a custom style) from the list, ensure
the Highlight all items found in 'Main Document' is checked, Find All, Close
(**Note -
this step would be the same as manually finding a "CCE Bullet2" Style
then choose Select All with Similar formatting from the right click
shortcut menu**)

2.    Select 'Normal' from the Style picklist on the toolbar (**At this
point - we have some hidden tracked changes appear - which is why we are
trying to create the macro**)

3.    Accept All Changes from the reviewing toolbar

4.    Select 'CCE Bullet2' from the Style picklist on the toolbar
Stefan Blom - 28 Sep 2007 11:19 GMT
Noncontiguous selections are not supported in VBA, as far as I know (see
http://support.microsoft.com/kb/288424/en-us).

But note that you can record a macro to replace all instances of a style
with another, instead.

Signature

Stefan Blom
Microsoft Word MVP

>I am trying to write a macro to record what I thought were fairly simple
> steps (below) - but am having no success.  Any help would be greatly
[quoted text clipped - 17 lines]
>
> 4.    Select 'CCE Bullet2' from the Style picklist on the toolbar
 
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.