![]() |
|
#10
|
|||
|
|||
|
Marrick,
The method Graham and I used looped through each element of an array and searched for each element of that array in the Heading 1 text. Apparently that process simply takes more time than looping though a simple count and evaluating InStr. It is hardly noticeable with one or two heading but certainly apparent in large documents as Paul demonstrated. He is usually pretty good at seeing those efficiencies and school all of us here. |
| Tags |
| loop style format case |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Tab character causes style change to Heading 4 after macro
|
Jennifer Murphy | Word VBA | 2 | 12-14-2015 02:31 AM |
| Macro to create a title in the Header when a certain text style is used (such as Heading 1) | Lonesy | Word VBA | 1 | 06-03-2015 03:57 AM |
Customising a style that uses Title Case formatting
|
Madanjeet | Word | 6 | 05-18-2015 10:11 AM |
True Title Case for First Row of All Tables
|
Marrick13 | Word VBA | 14 | 12-11-2013 09:12 PM |
Macro to replace one specific heading style with another
|
ubns | Word VBA | 44 | 09-04-2012 08:17 PM |