Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

Number rows based on punctuation at end of row

$
0
0

Hi all.

I'm working on a project, which I am writing out a LOT of questions. 

Once I finish, I need to number each question. Presently I am doing this manually. My question is---

What would be the vba code to number each question, based on having the question mark at the end of the question? 

EG

Where may these resources be found?

1.150 PURPOSE

What is the purpose of this manual?

Where is this reference located?

In the four lines above, I have 3 questions, and one header. As you can see, there's no question mark at the end of the header. 

I'd like to programmatically number all of my questions, while ignoring the headers (the one common feature is that the headers do not have question marks at the end of the row)

So that once it's done it looks like 

4- Where may these resources be found?

1.150 PURPOSE

5- What is the purpose of this manual?

6- Where is this reference located?

I'm writing out thousands of questions for a really large manual we use, as a training procedure, and I'm just tired of numbering these things manually. 

TYIA.


Viewing all articles
Browse latest Browse all 4350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>