Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2021, 06:03 AM
kyssling kyssling is offline Simple FormTextBox question Windows 7 64bit Simple FormTextBox question Office 2010
Novice
Simple FormTextBox question
 
Join Date: May 2021
Posts: 1
kyssling is on a distinguished road
Default Simple FormTextBox question

Hello, can anyone help me with following problem ?

I want add form field to Word, which will have content "Name Surname"
will be displayed before filling in.
After clicking in this field, content will be deleted and cursor will appear.

I can add "Form Text Box" with the default text, but now I have issue:



Settings Macro When Entering to FormTextBox : ActiveDocument.FormFields(2).Result = ""
I lock the document only for editing form fields.
I have a problem that this macro runs automatically when I open Word (even if the field is not entered). FormFields(2) because first field is drop-down box.
Thanks for the help !
Attached Files
File Type: docm TestEn.docm (20.8 KB, 5 views)
Reply With Quote
  #2  
Old 05-10-2021, 04:10 PM
Guessed's Avatar
Guessed Guessed is online now Simple FormTextBox question Windows 10 Simple FormTextBox question Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,968
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I recommend using Content Controls instead and avoid macros as this isn't much of a reason to use them. Try this version of your doc.
Attached Files
File Type: docx TestEn.docx (25.6 KB, 7 views)
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple question about ordering a table Jehannum Word Tables 3 03-01-2021 05:39 AM
really simple graph question vthomeschoolmom Excel 2 02-06-2019 06:05 AM
Simple copy question wbendermd Excel Programming 2 11-15-2018 08:00 AM
A simple math question markg2 Excel 6 03-01-2014 11:10 AM
Simple Envelope Question.... cmcneill Word 0 08-17-2009 05:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft