Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2024, 12:14 AM
WJSwanepoel WJSwanepoel is offline Expand font betweem quotes Windows 10 Expand font betweem quotes Office 2021
Advanced Beginner
Expand font betweem quotes
 
Join Date: Dec 2019
Location: Krugersdorp, South Africa
Posts: 82
WJSwanepoel is on a distinguished road
Question Expand font betweem quotes

I have a document which contains many quotations between double quotes.



I need a macro which can scan the text and set the font to "expanded" for the text inside the double quotes.

I would appreciate any help.
Reply With Quote
  #2  
Old 12-05-2024, 12:39 AM
macropod's Avatar
macropod macropod is offline Expand font betweem quotes Windows 10 Expand font betweem quotes Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,379
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

You really don't need a macro for that - all you need is a wildcard Find/Replace, where:
Find = “[!”]@”
Replace = ^&
and you set the replacement font attributes to whatever expanded setting you desire.

The above Find/Replace expression assumes you've used smart quotes. If you're not using those, try:
Find = "[!"]@"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-05-2024, 12:53 AM
WJSwanepoel WJSwanepoel is offline Expand font betweem quotes Windows 10 Expand font betweem quotes Office 2021
Advanced Beginner
Expand font betweem quotes
 
Join Date: Dec 2019
Location: Krugersdorp, South Africa
Posts: 82
WJSwanepoel is on a distinguished road
Default Thanks!

Thankyou, it works!
Reply With Quote
Reply

Tags
expanded font



Similar Threads
Thread Thread Starter Forum Replies Last Post
Expand font betweem quotes VBA format plain quotes to bold quotes Shelley Lou Word VBA 3 02-11-2024 05:56 AM
Problem when changing single-quotes to double-quotes Lup Word 14 02-14-2020 02:46 AM
Expand font betweem quotes How to replace straight quotes with smart quotes in existing document PABwriter Word 4 05-27-2016 03:36 PM
Changing dumb quotes to smart quotes Reisende Word 2 05-02-2016 08:56 PM
Expand font betweem quotes Changing single-quotes to double-quotes Bobosmite Word 5 04-15-2013 06:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:04 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