![]() |
#1
|
|||
|
|||
![]()
I have been using this code for a log time to convert all the fields of the document to just numbers:
Code:
Sub MMD_MakeAllReferencesToJustNumber() On Error Resume Next Dim oStoryRng As Range Dim oFld As Field For Each oStoryRng In ActiveDocument.StoryRanges For Each oFld In oStoryRng.Fields If oFld.Type = wdFieldRef Then If InStr(oFld.Code.Text, "\# 0;0") = 0 Then oFld.Code.Text = Replace(oFld.Code.Text, " \h", " \# 0;0 \h") End If oFld.Update End If Next oFld Next oStoryRng End Sub Now, I am wondering if it is possible to just update all the fields in the current page by changing Code:
For Each oStoryRng In ActiveDocument.StoryRanges Thanks, |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to save the current page in a new file with all the page settings (header, footer | Jamal NUMAN | Word | 6 | 03-15-2012 03:27 PM |
![]() |
gracie5290 | Word | 1 | 02-02-2012 11:41 PM |
![]() |
KIM SOLIS | Excel | 2 | 11-04-2011 06:09 PM |
![]() |
Styler001 | Word | 4 | 01-25-2010 06:40 PM |
![]() |
Motiv8td1 | Word | 2 | 02-21-2009 07:21 AM |