Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 09-28-2015, 10:54 PM
gmayor's Avatar
gmayor gmayor is offline Generating a Letter Windows 7 64bit Generating a Letter 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace a letter to random letter with different color? cikanoz87 Word 7 06-18-2015 09:43 PM
Generating a Letter generating visual reports ketanco Project 1 07-19-2014 12:01 PM
Generating a Letter generating a number in Word John P Word 1 05-31-2012 10:29 PM
Generating Buy/Sell signals accordingly... babapusy Excel 0 04-14-2012 10:11 AM
MS Word 2003 – Generating a ToC krazykasper Word 1 04-29-2009 02:44 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:20 AM.


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