Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 10-07-2013, 04:00 PM
slaycock slaycock is offline Strange characters in documents edited in Japan Windows 7 64bit Strange characters in documents edited in Japan Office 2013
Expert
Strange characters in documents edited in Japan
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

Hi Macropod

The problem is that I want to implement the find and replace as part of a macro that processes a number of documents.

The square symbol has the Ascw value of 12288 (Hex 3000). If I search and replace using a .find.text string of "^u12288" then I replace not only the square symbol but also each and every space character in the document.

With ActiveDocument.StoryRanges(wdMainTextStory).Find
.ClearFormatting
.Replacement.ClearFormatting

.Text = "^u12288"
.Replacement.Text = vbtab

.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With

If I follow your advice of cutting and pasting into a manual search and replace then the same thing happens. All space characters are converted to tab characters.

Finally, would you be kind enough to explain the following line in your macro

.Text = "[" & ChrW(61472) & "-" & ChrW(61695) & "]"

What are the chrw(61472) and chrw(61695) and do I need to replace the - with my character e.g. ^u12288.

I'm really grateful for your input so far
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange characters in documents edited in Japan Word 2010 to PDF: PDF gets strange characters Dianne Office 2 09-18-2013 09:12 AM
Strange characters in documents edited in Japan Strange characters in Header appear AFTER Word doc converted to PDF?? souicat Word 2 06-12-2013 02:56 PM
Strange characters in documents edited in Japan How do I delete strange characters from a document. Stokkers Word 1 06-12-2013 04:21 AM
Strange characters in documents edited in Japan Strange Characters Removal OceansBlue Word 2 04-03-2013 10:01 AM
Referencing a value over 255 characters within a table PLUS strange formula behaviour TishyMouse Excel 2 01-08-2013 09:39 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:40 AM.


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