View Single Post
 
Old 05-04-2015, 09:46 PM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
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

If you add the FillBM function that I pointed to in my earlier post you can simply call it as required to fill your document bookmarks (provided they don't overlap) e.g.

Code:
Private Sub CommandButton1_Click()
    Me.Hide
    FillBM "RepTitle", Me.TextBox1.Text
    FillBM "ReportDate", Me.TextBox2.Text
    FillBM "Client", Me.TextBox3.Text
    'etc
End Sub
I agree with Charles that it is better to use meaningful names for the elements, but let's not run before we can walk.
__________________
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