Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

property/code for symbol characters?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jürgen - 20 Jan 2005 08:47 GMT
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.
Helmut Weber - 20 Jan 2005 16:00 GMT
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/
Jürgen - 21 Jan 2005 06:57 GMT
Thanks Helmut,

that's what I needed!

> Greetings from Bavaria, Germany
dito ;-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.