Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-25-2018, 12:32 AM
ArviLaanemets ArviLaanemets is offline Difficulties with replacing certain language-specific characters using VBA. Windows 8 Difficulties with replacing certain language-specific characters using VBA. Office 2016
Expert
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

The function CHRW(UnicodeValue) in VBA returns Unicode character;
The function UNICODE(TextString) in VBA returns Unicode value of 1st character in TextString.

You can use REPLACE() in VBA to replace one Unicode/ASCII character in call with another one;
Or you can give an ReplaceAll command to replace one Unicode/ASCII character on worksheet with another one.

So general approach for VBA procedure will be:
Create 2-dimensional array with Unicodes for characters to be replaced and to replace to;
a) Cycle through all cells in used area in worksheet. For every cell cycle through array to replace the character;
b) Cycle through array. For every character to be replaced invoke ReplaceAll for worksheet.
Reply With Quote
 

Tags
characters, replacing, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulties with replacing certain language-specific characters using VBA. A Macro to break lines automatically after specific number of characters Annie Wordy Word VBA 1 11-03-2017 08:36 PM
Difficulties with replacing certain language-specific characters using VBA. Deleting Characters in a specific location in Word 2010 ppayaw Word VBA 8 12-13-2016 08:11 AM
Customize grammar settings for specific language? jpgauvin Word 0 12-05-2016 03:06 PM
Difficulties with replacing certain language-specific characters using VBA. How do I Remove A Specific Amount of Characters from Lines in a Document? tatihulot Word 5 01-22-2016 05:55 AM
Difficulties with replacing certain language-specific characters using VBA. Extract Line of Text w/ specific characters up to the paragraph character, send to Excel dmarie123 Word VBA 10 07-20-2015 12:16 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft