Jump to content

neepinj

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by neepinj

  1. Hi!! Thanks for the link. I will check it out. The reason that I am using a macro is because the DROPDOWN form field text maximum length is 50 characters and the TEXT form field text maximum length is unlimited. So I thought that I'd use the macro to auto-fill the text form field, depending on what is chosen in the drop down field. Anyways, thanks again... I haven't had a chance to test the macro from the link yet, but hopefully it give me an idea on how to solve this. J
  2. Hi there, I have a question regarding forms in MS Word. This is what I would like to do: I want to replace the value of the text in a text form field depending on what value is entered. I wrote a macro to run on 'entry' of the text form field, as follows: Sub ChooseReason() Dim Message, Title, Default, ReasonChosen ReasonChosen = 0 ' Initialize variable. Message = "Enter the reason number (1 through 3)" ' Set prompt. Title = "InputBox Demo" ' Set title. Default = "0" ' Set default. ' Displaying the message, title, and default value in INPUTBOX. ReasonChosen = InputBox(Message, Title, Default) Select Case ReasonChosen ' Evaluate choice. Case 1 ' 1st choice. Set TextReason.Text = "Choice 1" Case 2 ' 1st choice. TextReason.Text "Choice 2" Case 3 ' 1st choice. TextReason.Text "Choice 3" End Select End Sub The text in red is where I am trying to assign the form's text value. The text form has been bookmarked as 'TextReason'. The initial problem is due to the drop-down form field items being "too short" for the values that I want to enter. The value of the first drop-down field would be the reason the user chooses the values of the second drop-down field, but it's not wide enough. So I thought that the text form field could be used as the size can be unlimited. If anyone has encountered this or has any idea how to fix this, please help! Thanks!! Jo
×
×
  • Create New...