![]() |
|
#4
|
||||
|
||||
|
Quote:
Code:
End With Next oTbl Code:
Dim oTbl As Word.Table
For Each oTbl In ActiveDocument.Tables
With oTbl
End With
Next oTbl
Selection.Rows.HeadingFormat = wdToggle would only work on a Selection (i.e. something that is selected), but your code isn't selecting anything (and doesn't need to). Furthermore, it would actually add a header row if a selected row wasn't already one... Being inside a loop only means it'll keep toggling the same selection's header property on/off. Similarly, your Find/Replace code operates completely independently of any tables that it might be in - it works on the entire document. All that happens is that the loop keeps running the same document-wide process. Finally, if you want to keep the macros separate, you could change lines like: Application.Run MacroName:="ReplaceBullets" to just: ReplaceBullets or, to make it more apparent another sub is being called: Call ReplaceBullets
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro to create tables around all images in document
|
lsmcal1984 | Word VBA | 4 | 12-01-2013 06:58 PM |
| select statement in macro | Nicolette | Excel | 1 | 11-19-2013 01:38 AM |
Macro for select words?
|
Megan Sprack | Word | 1 | 08-23-2012 03:03 PM |
Macro to select tables
|
ubns | Word VBA | 5 | 04-15-2012 11:44 PM |
Can't select shapes via macro
|
TishyMouse | Word VBA | 3 | 04-13-2012 03:26 AM |