Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 02-14-2022, 10:28 PM
gmayor's Avatar
gmayor gmayor 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
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

I am curious why you need two userforms for this when you appear to have both documents open. Wouldn't it make sense to provide the data to both documents from the same userform? In fact your code already appears to do that.

You could also read and write data via the registry using SaveSetting and GetSetting e.g.
Code:
Public Function appID() As String
     appID = "MyApp"
lbl_Exit:
    Exit Function
End Function
Code:
'Write
SaveSetting appID, "Config", "My Initials", txtInitials.Text
'Read
txtInitials.Text = GetSetting(appID, "Config", "My Initials", "Mr Dr")
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



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 12:53 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