Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2011, 05:11 AM
Authorized User
 
Join Date: Nov 2010
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default Entity conversion In MS word 2007

Hi,

In word i need to convert & symbol to hexadecimal & by using VBA. To convert all non-keyboard character to hexadecimal.

please any one help for me.

Thanks,
Rockbal
 
Old November 3rd, 2011, 07:54 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

Code:
hex(asc(selection.Text))
Would give you the Hex code for the given character. You can loop through the text to find it. If it is time consuming, you need to check for a batch process

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
UTF8 to XML Entity Conversion mnagaraj1983 Perl 7 August 11th, 2011 10:48 PM
Generating MS Excel and MS Word documents through .Net 3.5 swatianand ASP.NET 3.5 Basics 1 January 20th, 2010 07:38 AM
Entity Conversion vengatatindia Word VBA 0 February 15th, 2008 05:52 AM
entity conversion orlyyefet XSLT 3 July 29th, 2007 03:14 PM
entity conversion (TidyCOM) Kabe XML 4 September 16th, 2005 07:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.