Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2022, 04:00 PM
mdr mdr is offline Transfer DocVariables from one template's userform to another template's userform Windows 10 Transfer DocVariables from one template's userform to another template's userform Office 2019
Novice
Transfer DocVariables from one template's userform to another template's userform
 
Join Date: Jan 2022
Posts: 8
mdr is on a distinguished road
Default

ok, i have gotten it so that the information i enter on the userform in document 1 will show up as documentvariables in document 2, but it will not show up on the userform for document 2. Any thoughts? This is the code I am using right now in document1

If chxIFPOrder = True Then
Set doc1 = ActiveDocument
Set doc2 = Application.Documents.Add("C:\XXXX.dotm")
doc2.Variables("myinitials").Value = Me.TxtYourInitials.Value
End If


When I do that, there is no myinitials information showing up on the userform itself in doc2, but when I hit OK on the userform in doc2, then the myinitials documentvariable populates with the myinitials information that I entered on the userform in doc1 shows up. I want the info to show up on the userform in doc2 also.

Any help would be greatly appreciated!



-- Mike
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
UserForm with Combo Box from data in table within template jhansrod Word VBA 6 06-13-2019 09:02 AM
Excel Userform to Word Template Bookmarks JCrinage Excel Programming 1 11-02-2016 07:03 PM
Transfer DocVariables from one template's userform to another template's userform Agenda template - userform kennyD Word 4 04-07-2015 01:32 PM
userform to enter multiple lines of data in template callasabra Word VBA 0 06-27-2014 05:29 PM
How to get Outlook 2007 userform into template? Royzer Outlook 0 04-13-2012 10:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft