property/code for symbol characters?

J

Jürgen

Hi.

Selection.Font.Name does not show the right font, if a character was
inserted with Insert->Symbol (Font: Symbol),
and AscW(Selection) or Asc(Selection) = 40 for any symbol character.

How can I get a hint, that the character is treated as a symbol and not a
'normal' character - is there any property? And how can i get the right code?

Thank you.
 
H

Helmut Weber

Hi Jürgen,

in a very simplified manner:

Dim oDlg As Dialog
Dim oChr As Object
Set oDlg = Dialogs(wdDialogInsertSymbol)
For Each oChr In Selection.Range.Characters
If oChr = "(" Then
oChr.Select
Set oDlg = Dialogs(wdDialogInsertSymbol)
MsgBox oDlg.Font
MsgBox oDlg.charnum + 4096
End If
Next

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top