Share via

VBA Chr function for smart quotes

Anonymous
2012-09-20T16:01:54+00:00

Using Word 2010. I have a document filled with technical terms (one or more words in each instance) surrounded by quote marks. I want to change the font of each such instance from Times New Roman 12-point to Ariel 10-point bold. I wrote a macro to find the leading quote mark in each instance, then extend the selection to the trailing quote mark and make the font changes. It'll find the leading quote mark OK, but not the second, if smart quotes are used -- but works just fine if smart quotes have been replaced by straight quotes. So though the first smart quote in a pair apparently uses Chr(34), the second uses something else. Does anyone know what that might be? Thanks!!

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-09-20T18:49:08+00:00

34 is the straight quote.

147 is the beginning smart quote

148 is the ending smart quote

Was this answer helpful?

4 people found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful