![]() |
#4
|
|||
|
|||
![]()
Hi, RobiNew! I have three suggestions:
1) oRng.Collapse wdCollapseStart can be replaced by oRng.Collapse because wdCollapseStart is the default value (a little shorter); 2) oRng.MoveEndUntil Cset:=" h" will find any ONE char of the set of chars (either ' ' or 'h', not both of them) because Cset is a single-character function; 3) oRng.MoveUntil oRng Like "^# " is incorrect. I'd use oRng.MoveUntil Cset:="0123456789" to find any digit. These are just minor suggestions, maybe someone will help with the whole code because not everything in it is clear to me. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to hide/delete slides based on keyword in a separate text file based on AND|OR condition? | rupd911 | PowerPoint | 0 | 02-22-2021 08:22 AM |
![]() |
commissarmo | Word VBA | 3 | 03-14-2015 12:53 AM |
![]() |
officeboy09 | Word | 6 | 09-26-2014 05:15 PM |
![]() |
subodhgupta | Word | 4 | 05-22-2014 03:34 AM |
![]() |
vikrantkale | Word | 1 | 03-28-2011 06:13 PM |