Thread: [Solved] Generating a Letter
View Single Post
 
Old 09-28-2015, 10:54 PM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,143
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

You can address any part of the document from the userform, by setting a range to the area you wish to work in. If you put a bookmark in the header e.g. bmHeader then you can write text to that bookmark using the FillBM function you will find at http://www.gmayor.com/useful_vba_functions.htm then call it from your macro as follows

Code:
FillBM "bmHeader", "Some Text"
__________________
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