C
Charlie's odd VBA questions
In a Word document, if the user inserts a symbol or extended character, Word
assigns a character code of Asc(40) or Asc(63). (This is documented by MS.)
I have written a macro that can find these special characters using
Selection.Find.Text(unicode value). However, even though I can find and
select these characters, I can not figure out how to determine the actual
font. When viewing the document, Word lists the font as, say, Arial, even
though the character is actually Webdings, for example. The macro returns
the font name as Aeial, not Webdings. Since I need to copy or replace the
character, I need to know the real font name and apply that.
Any help you might offer will be really appreciated.
I would also like to know if it is possible to get the actual count of
replacements when a macro does a Find.Replace to replace all occurrences.
Word shows the number of replacements in the status bar, but I can't find any
property that I can return to know how many replace occurrences there were.
Many, many thanks for any help.
assigns a character code of Asc(40) or Asc(63). (This is documented by MS.)
I have written a macro that can find these special characters using
Selection.Find.Text(unicode value). However, even though I can find and
select these characters, I can not figure out how to determine the actual
font. When viewing the document, Word lists the font as, say, Arial, even
though the character is actually Webdings, for example. The macro returns
the font name as Aeial, not Webdings. Since I need to copy or replace the
character, I need to know the real font name and apply that.
Any help you might offer will be really appreciated.
I would also like to know if it is possible to get the actual count of
replacements when a macro does a Find.Replace to replace all occurrences.
Word shows the number of replacements in the status bar, but I can't find any
property that I can return to know how many replace occurrences there were.
Many, many thanks for any help.