![]() |
|
#1
|
|||
|
|||
![]()
Dim is a declaration statement. oRng is a variable. Word.Range is an object.
I used DIM to declare the variable oRng as was Word.Range object. I then set the oRng variable object = to the ActiveDocument.Range The I searched the range for the text "^13" (I used ^13 because "^p" is invalid in the find what when wildcards are used.) "{2,}" is a wildcard statement meaning to search for 2 or more instances. See "Learn to love ranges" here: http://gregmaxey.com/word_tip_pages/vba_basics.html |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any easy way to clean up bulleted list? | New Daddy | Word | 2 | 08-29-2013 06:00 AM |
custom icon, undo/redo for macro, permanent macro | Rapier | Excel | 0 | 08-05-2013 06:30 AM |
![]() |
TTN | Office | 22 | 07-14-2012 01:48 AM |
![]() |
robinarm | Outlook | 2 | 11-03-2011 02:46 AM |
How do I assign a macro to a button when the macro is in my personal workbook? | foolios | Excel Programming | 2 | 07-27-2011 02:41 PM |