![]() |
|
|
|
#1
|
||||
|
||||
|
The code itself goes in the same module as the rest of your code.
The code is a function to be called from your main process. e.g. after say NextPara has been declared you can use it to check what the paragraph level number is. To test it put the cursor in a paragraph and run the following macro from the same module as the function Code:
Sub Test()
Dim para As Paragraph
Set para = Selection.Paragraphs(1)
MsgBox ListParaNum(para)
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#2
|
|||
|
|||
|
Fabulous thanks so much Graham for your help, best Shelley
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Selectively numbered paragraphs based on headings..
|
WildfireS3 | Word | 2 | 05-18-2020 05:18 AM |
| Indent on headings | nerion | Word | 5 | 04-11-2019 04:48 AM |
| Difference between first line Indent and Left Indent | kingston123 | Word | 3 | 09-25-2018 02:47 PM |
| Indent of first numbered heading different from subsequent headings | ultimateguy | Word | 1 | 08-12-2015 06:51 AM |
Problem with bold numbers in multi-level list styles when having numbered headings AND paragraphs
|
bwofficer | Word | 2 | 12-12-2014 12:21 AM |