![]() |
|
#6
|
||||
|
||||
|
Dita
If you want to learn to code for exceptions you need to study code already on this forum to see how people have dealt with issues. For instance, a good example of dealing with table content and exceptions can be seen in this thread https://www.msofficeforums.com/word-...ll-tables.html The code Graham provided is very simplistic and provides a 'test' but doesn't selectively apply formatting to the non-hyperlink parts of the selection. It is an 'all or nothing' approach which looks to see if there are ANY hyperlinks in the selection and if not, formats the whole selection. To apply the colour to chunks of the selection which aren't hyperlinks requires a lot more code and could be approached in few different ways. Probably the easiest would be to format everything selected as red and then loop through any hyperlinks and turn them back to your preferred colour.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Adding another macro in the macro list
|
Marcia | Excel Programming | 6 | 11-07-2018 04:13 AM |
Making exceptions to PROPER
|
Chayes | Excel Programming | 8 | 06-05-2018 07:19 AM |
| Exceptions on my documents | Martinod | Word | 1 | 03-12-2018 11:53 AM |
Adding to a macro
|
Ulodesk | Word VBA | 4 | 03-07-2016 01:40 PM |
| Autocorrect Exceptions not working | danvdr | Word | 6 | 05-26-2014 09:37 PM |