M
m rafala
Since WD97 I've used the subroutine below to capture the user's symbol
choice from the InsertSymbol dialog:
Private Sub SymbolDlgBox()
Set dlg = Dialogs(wdDialogInsertSymbol)
If dlg.Display() <> -2 Then 'Insert button pushed
SymdlgFont = dlg.Font
SymdlgCharNum = dlg.CharNum
End If
End Sub
-- InsertSymbol dialog appears
-- User clicks on symbol
-- User presses Insert button
-- Dialog goes away
-- my variables have the correct values
With Word 2002, I get this:
-- InsertSymbol dialog appears
-- User clicks on symbol
-- User presses Insert button
-- Dialog DOES NOT go away
-- THE SYMBOL IS INSERTED INTO THE ACTIVE DOCUMENT
-- USER MUST PRESS CANCEL TO DISMISS THE DIALOG
What's particularly annoying is that the user must press cancel to dismiss
the dialog, so my macro's dlg.Display() can never return a value of -1
(Insert).
Does anyone know of another way to use the InsertSymbol dialog so that it
does not insert the character into the active document?
choice from the InsertSymbol dialog:
Private Sub SymbolDlgBox()
Set dlg = Dialogs(wdDialogInsertSymbol)
If dlg.Display() <> -2 Then 'Insert button pushed
SymdlgFont = dlg.Font
SymdlgCharNum = dlg.CharNum
End If
End Sub
-- InsertSymbol dialog appears
-- User clicks on symbol
-- User presses Insert button
-- Dialog goes away
-- my variables have the correct values
With Word 2002, I get this:
-- InsertSymbol dialog appears
-- User clicks on symbol
-- User presses Insert button
-- Dialog DOES NOT go away
-- THE SYMBOL IS INSERTED INTO THE ACTIVE DOCUMENT
-- USER MUST PRESS CANCEL TO DISMISS THE DIALOG
What's particularly annoying is that the user must press cancel to dismiss
the dialog, so my macro's dlg.Display() can never return a value of -1
(Insert).
Does anyone know of another way to use the InsertSymbol dialog so that it
does not insert the character into the active document?