[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 502
  • Last Modified:

Displaying an M-Dash w/VBA code

I need to be able to display an M-Dash instead of a normal hyphen in a word document.  I need to be able to put it in code so that when that particular string is being displayed, the m-dash will appear with it.

Suggestions?
0
CapnCrnch
Asked:
CapnCrnch
  • 2
1 Solution
 
bruintjeCommented:
Hi CapnCrnch,

not sure but you could look at
----------
Selection.InsertSymbol CharacterNumber:=8212, Unicode:=True, Bias:=0
   (This happens to be the symbol for an "M-dash")
----------
source: http://www.jojo-zawawi.com/code-samples-pages/code-samples.htm

hope this helps a bit
bruintje
0
 
CapnCrnchAuthor Commented:
Thanks for the response.  I finally found an answer.  Inserting a chr(151) does the trick.
0
 
bruintjeCommented:
glad you found your answer and thanks for the grade ;)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now