I am a little stuck with some vba... what I want to achieve is that when a user clicks "save as" a dropdown list appears allowing the selection of one of 3 or so values, once a value is selected a text box will then appear asking the user to type a value, these values will then be concatenated and added to the footer of the document.
so far I have:
Now this does half the task and allows me to input some data into a text box, click ok and the footer is updated however having not used vba in as long as I can remember the dropdown list is evading me...
Any help much appreciated.
so far I have:
Code:
Public Sub FileSaveAs()
Dim MyText As String
strData = InputBox("value here....")
With ActiveDocument.Sections(1)
.Footers(wdHeaderFooterPrimary).Range.Text = strData
End With
MsgBox ("The footer has been updated")
ActiveDocument.Save
End Sub
Now this does half the task and allows me to input some data into a text box, click ok and the footer is updated however having not used vba in as long as I can remember the dropdown list is evading me...
Any help much appreciated.