Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-24-2017, 09:24 AM
NickDenton NickDenton is offline VBA user forms for auto filling word document Windows 8 VBA user forms for auto filling word document Office 2016
Novice
VBA user forms for auto filling word document
 
Join Date: May 2017
Posts: 1
NickDenton is on a distinguished road
Default VBA user forms for auto filling word document

Hi, I am trying to write some simple code in VBA to use user forms to auto fill text in a Word document.
I have created bookmarks in the Word document and text boxes on the User form but when I click the OK command button nothing happens.
this is the code I have written:-

Private Sub cmdOK_Click()


With ActiveDocument
.Bookmarks("BorrowerName").Range.Text = txtBorrowerName.Value
End With

Any help would be gratefully received
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA user forms for auto filling word document filling in forms character limit benjii19 Word 1 12-29-2015 11:49 AM
Problems with filling in forms Gijs Verhoeff Word 0 09-24-2015 03:29 AM
Automate filling in PDF Forms from Word? dlowrey Word 5 09-23-2014 10:12 PM
filling in forms mepossem Word 3 05-25-2013 02:35 AM
VBA user forms for auto filling word document Filling out job application forms. wordy Word 1 07-31-2012 12:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:55 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