Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Call a Userform rather than a Inputbox
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="DavidRocastle, post: 5858355"] 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Call a Userform rather than a Inputbox
Top