Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hello, I'm trying to figure out how to find & replace out entire tables if
they are preceded and followed by specific text. Say, preceded by "_before" and followed by "_after", for example. I've tried using the wildcard F&R w/[*] where the table fits in, to no avail. (This table, in case it matters, contains 12 columns and two rows, the bottom row being empty, and occurs many times in a mail-merged document; this procedure once I have it figured out will be added to a macro that's done on these merged docs.) I've tried to learn the Visual Basic nomenclature for tables, but can't find a central site to start learning that, and I'm hoping I don't need to do that in order to accomplish this. Thanks for any help, links, etc. -- Message posted via http://www.officekb.com |
#2
![]() |
|||
|
|||
![]()
Erica,
Try (_before)*(_after) in the find what and \1^13\2 in the replace with. Make sure MoreUse Wildcards is check. Works here. -- Greg Maxey/Word MVP A Peer in Peer to Peer Support Erica Mulkey via OfficeKB.com wrote: Hello, I'm trying to figure out how to find & replace out entire tables if they are preceded and followed by specific text. Say, preceded by "_before" and followed by "_after", for example. I've tried using the wildcard F&R w/[*] where the table fits in, to no avail. (This table, in case it matters, contains 12 columns and two rows, the bottom row being empty, and occurs many times in a mail-merged document; this procedure once I have it figured out will be added to a macro that's done on these merged docs.) I've tried to learn the Visual Basic nomenclature for tables, but can't find a central site to start learning that, and I'm hoping I don't need to do that in order to accomplish this. Thanks for any help, links, etc. |
#3
![]() |
|||
|
|||
![]()
OK, that does work. Now I feel dumb because the only thing wrong with the
way I was doing it before was that I was giving the "*" its own range:[*]. I thought I was clear on what these [] were for in a wildcard search, but apparently not. Thanks for your help! -- Message posted via http://www.officekb.com |
#4
![]() |
|||
|
|||
![]()
See http://www.gmayor.com/replace_using_wildcards.htm
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Erica Mulkey via OfficeKB.com wrote: OK, that does work. Now I feel dumb because the only thing wrong with the way I was doing it before was that I was giving the "*" its own range:[*]. I thought I was clear on what these [] were for in a wildcard search, but apparently not. Thanks for your help! |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace | New Users | |||
Find and Replace Locks Up Word | Formatting Long Documents | |||
Find and Replace Locks Up Word | Microsoft Word Help | |||
Find and Replace anomaly | Microsoft Word Help | |||
find and replace symbols | New Users |