Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-03-2019, 08:55 AM
leyper leyper is offline How do I get a radio button or radio group to return its value(s) to a text field using VBA? Windows 10 How do I get a radio button or radio group to return its value(s) to a text field using VBA? Office 2010
Novice
How do I get a radio button or radio group to return its value(s) to a text field using VBA?
 
Join Date: Apr 2019
Posts: 1
leyper is on a distinguished road
Default How do I get a radio button or radio group to return its value(s) to a text field using VBA?

I've put together a protected form in Word that, once completed, the user will submit by email. Ideally the email would contain the form pasted into the body of the email rather than as an attachment, but as the form is protected there's no way the user can unprotect the document, "select all", copy and re-protect the document.



So I have provided two options for the user: 1) a Submit button at the end of the form which fires up a blank email with the completed form as an attachment (via the SendMail command). 2) A "copy to clipboard" button which copies the entire Word doc content to the clipboard without the need for the user to unlock and re-lock the document. The user can then manually paste that content into the body of the outgoing email.

This work fine up to a point: when the email is sent to a recipient, controls such as radio buttons and dropdowns won't display for the recipient. All other parts of the form including text fields display as intended.

As a workaround I want to add additional text fields beneath any radio button groups and dropdown lists. I would like these text fields to reflect the selections made using the associated controls. i.e. if the user chooses "No" from a Yes/No radio button group, then the text field beneath that group will populate with the text "No" (because I know that field text will display in the recipient's email even if the actual radio/list control doesn't). The same goes for dropdown lists; whatever the user selects from the list should display in the text field next to the list.

Is there a way/piece of VBA code that will allow a control to "export" its value to a text field?

The two control types I am using are radio buttons groups (Yes/No) and dropdown lists. The rest of the form contains text fields (which work fine).

Thanks.
Reply With Quote
 

Tags
form fields, radio button, vba code



Similar Threads
Thread Thread Starter Forum Replies Last Post
Option/Radio Button,Group box 1 & 2 ... Kwmck328 Excel 0 02-19-2015 09:26 PM
How do I get a radio button or radio group to return its value(s) to a text field using VBA? Radio Button Problem cesarica Word 2 01-08-2015 08:02 AM
How do I get a radio button or radio group to return its value(s) to a text field using VBA? Circling your selection on word vs check box or radio button NBuckley Word 2 04-04-2014 03:17 AM
My First Attempt at Form Creation: Input of Text via Check Box or Radio Button tatihulot Excel 0 08-15-2013 06:11 AM
How do I get a radio button or radio group to return its value(s) to a text field using VBA? Radio (options button) problem Niros Excel 1 11-24-2005 09:58 AM

Other Forums: Access Forums

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