M
Margaret Upton
Please could someone help. I am trying to get a message box to give an A or
B option. In otherwords if you choose A it would save into Town or B into
Country. I only know how to get a Yes No situation. Could anyone help
please. I have put the example of what I am trying to get to work below.
Margaret
Dim intMsgBoxResult As Integer
intMsgBoxResult = MsgBox("Town or Country", vbYesNo + _
vbQuestion, "Current Status")
If intMsgBoxResult = vbYes Then
With Dialogs(wdDialogFileSaveAs)
.Name = "C:\My Documents\Town Details 2003\"
.Show
End With
Else
With Dialogs(wdDialogFileSaveAs)
.Name = "C:\My Documents\Country Details 2003\"
.Show
End With
End If
B option. In otherwords if you choose A it would save into Town or B into
Country. I only know how to get a Yes No situation. Could anyone help
please. I have put the example of what I am trying to get to work below.
Margaret
Dim intMsgBoxResult As Integer
intMsgBoxResult = MsgBox("Town or Country", vbYesNo + _
vbQuestion, "Current Status")
If intMsgBoxResult = vbYes Then
With Dialogs(wdDialogFileSaveAs)
.Name = "C:\My Documents\Town Details 2003\"
.Show
End With
Else
With Dialogs(wdDialogFileSaveAs)
.Name = "C:\My Documents\Country Details 2003\"
.Show
End With
End If