How do I format text using section numbering?

  • Thread starter Pitchblackflame
  • Start date
P

Pitchblackflame

I'm currently attempting to edit a "Testing Procedure" that's divided u
into different sections, each potentially having subsections, which ma
have subsubsections, and so on and so forth.

In part of the procedure there are various steps that have a
instruction to take a data recording and name the file according to th
section number in which the step is contained. For example if it wa
Section "3.1.1.1" the file would need to be name
"Name_3_01_01_01_etc".

Currently I have most of them filled in with 3_XX_YY_ZZ (see attache
image for example). So what I would like to have is a macro that look
for that string of text, then replaces that text with the numbers fro
the section that it's in.

I have a general familiarity with using VBA in microsoft word, but I'
completely clueless as to how to have a macro determine the sectio
numbers.

Note: All section numbers that this applies to will be in the form o
3.XX.YY.ZZ, and XX, YY, and ZZ can each be one or two digit numbers.

Any help would be appreciated. Thanks

+-------------------------------------------------------------------
|Filename: example.png
|Download: http://www.wordbanter.com/attachment.php?attachmentid=170
+-------------------------------------------------------------------
 

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

Top