Help with macro to add ":" after Table #

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a macro in MS Word 2000 where the macro will change
style of all my table title( I can make this change by find and replace by
recording) but how can I add ":" after Table #.

For example
Currently I have all my tables with following title
Table 1 Abc Xyz
and I am trying to achive
Table 1: Abc Xyz

Any help on coding... Thanks
 
You don't need a macro.

Use Edit>Replace>More>Use Wildcards.

Type in the find field: (Table [1-9]{1,})
Type in replace field: \1:
Replace All
 
You can add the 'Table' and the ':' to the numbering scheme itself, via the
Bullets and Numbering dialog.
 
But note that table captions are usually not created via Bullets and
Numbering, but rather via the Caption dialog box.

--
Stefan Blom
Microsoft Word MVP


in message
 
Thanks for the help Greg. My table titles are caption so, [1-9] do not
recognise the numerical values. so, I deleted [1-9] from the code and entered
it as (Table {1,}) this is working but ":" is replaced before number i.e.
Table: 1 instead of Table 1:

Any futher help with this.

Thanks
bansri
 
Donna,

Display field codes (ALT+F9)
In find type: Table ^d
In replace type: ^&:
Replace all
Toggle field codes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top