D
DavidRocastle
I was wondering from the code below how would i call a userform, named
userform1 which will contain a textfield named Title, please view the code
rather than having the inputbox which is currently displayed.
-------------------------------------
Dim Title As String
Title = InputBox("Enter the Document Title:", "Title", "New Document")
ActiveDocument.BuiltInDocumentProperties("Title").Value = Title
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType < wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
userform1 which will contain a textfield named Title, please view the code
rather than having the inputbox which is currently displayed.
-------------------------------------
Dim Title As String
Title = InputBox("Enter the Document Title:", "Title", "New Document")
ActiveDocument.BuiltInDocumentProperties("Title").Value = Title
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType < wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If