Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2017, 04:27 PM
wordnew wordnew is offline Change stylesheet of all words containing ~ Windows 10 Change stylesheet of all words containing ~ Office 2007
Novice
Change stylesheet of all words containing ~
 
Join Date: Sep 2017
Posts: 6
wordnew is on a distinguished road
Default Change stylesheet of all words containing ~

Hello,


I have a document which contain of western text and rtl complex text. Among others i have Stylesheets "Lexem" and "Sense".

Now i need a macro which does following in my document:

Step1 - Find all Words (Western) which contain the symbol "~" and which have current Style "Lexem"
Step2 - Change style of found words from "Lexem" to "Sense"

I will be very thankful if some one here could help me with a code.

I am uploading first 20 Pages of my real document as example and for testing the code.

Thanks for each help in advance.
Attached Files
File Type: docx 20_pages_example_forum.docx (79.7 KB, 9 views)
Reply With Quote
  #2  
Old 09-19-2017, 09:04 PM
macropod's Avatar
macropod macropod is offline Change stylesheet of all words containing ~ Windows 7 64bit Change stylesheet of all words containing ~ Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Except for documents saved to HTML, Word hasn't used StyleSheets for decades. Styles are contained in the document itself.

All you need in this case is a simple Find/Replace, where:
Find = ~
Format>Style: Lexeme
Replace = ^&
Format>Style: Sense
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-21-2017, 11:10 AM
wordnew wordnew is offline Change stylesheet of all words containing ~ Windows 10 Change stylesheet of all words containing ~ Office 2007
Novice
Change stylesheet of all words containing ~
 
Join Date: Sep 2017
Posts: 6
wordnew is on a distinguished road
Default

thank you very much for you kind help. It was more simple than i thought. Thanks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change computer's time, and all appointment times in Outlook's calendar change TimTDP Outlook 0 03-14-2017 06:56 AM
Change stylesheet of all words containing ~ Capitalize one to two words if they are the only words on a line jrhlavac Word VBA 1 10-08-2015 08:19 PM
Change stylesheet of all words containing ~ How to mark underlined words in a sentence as A, B, C, D (beneath the words) thudangky Word 13 12-12-2013 02:22 AM
Change stylesheet of all words containing ~ change the view to final, my change bars disappear. I need them visible anna.a.julin Word 1 03-01-2012 08:05 PM
Why Words doesn’t show the style of the selected words automatically???? Jamal NUMAN Word 0 04-14-2011 03:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:13 PM.


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