D
DWTSG
I have some code:
Private Sub Document_New()
Dim result As Integer
Dim stCurFont As String
stCurFont =
MsgBox (curFont)
result = MsgBox("The current font is stCurFont. Do you want to change it?",
vbQuestion + vbYesNo)
If result = 6 Then
Dialogs(wdDialogFormatFont).Show
End If
If result = 7 Then
End If
End Sub
When a new document is created from this template I would like to prompt the
user with the current font and then give them a chance to change it. I am
having trouble just finding what the current font is. I have a string
variable named stCurFont and I would like to set that equal to the current
font and then display it in the message box. Any suggestions?
Private Sub Document_New()
Dim result As Integer
Dim stCurFont As String
stCurFont =
MsgBox (curFont)
result = MsgBox("The current font is stCurFont. Do you want to change it?",
vbQuestion + vbYesNo)
If result = 6 Then
Dialogs(wdDialogFormatFont).Show
End If
If result = 7 Then
End If
End Sub
When a new document is created from this template I would like to prompt the
user with the current font and then give them a chance to change it. I am
having trouble just finding what the current font is. I have a string
variable named stCurFont and I would like to set that equal to the current
font and then display it in the message box. Any suggestions?