Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2022, 02:20 PM
cirerita cirerita is offline Using wildcards to italicize magazine/book titles Windows 10 Using wildcards to italicize magazine/book titles Office 2021
Novice
Using wildcards to italicize magazine/book titles
 
Join Date: Nov 2022
Posts: 5
cirerita is on a distinguished road
Default

Thanks! You are, of course, right! Thing is, I tried the macro using some actual titles, and some of them were not properly formatted. Taking a close look at them I noticed there were apostrophes or exclamation points in them. For some reason, the macro skips those titles, as in:

46. First Magazine’s Entry 1.8, April 1960
47. Second Magazine 36, April 1960
1144. First Book, September 1981
1145. Second Book, September 1981

Is there a way for the macro to ignore apostrophes, exclamation points, and so on, so that all titles get italics?

There are also some 300 titles that are not followed by a comma or a number, as in:

74. Mindscapes: Poems for the Real World
Richard Peck, ed. | Dell Publishing Company: New York, NY | 1972

After running the macro I get this:


74. Mindscapes: Poems for the Real World
Richard Peck
, ed. | Dell Publishing Company: New York, NY | 1972


The title line is followed by the editor's name in the next line. Both lines are separated by a paragraph break. Could this be used in the macro somehow so that when there's no comma and no number after the title--but there's a paragraph break--then the italics are not used after the title?
Reply With Quote
  #2  
Old 11-30-2022, 03:11 PM
macropod's Avatar
macropod macropod is offline Using wildcards to italicize magazine/book titles Windows 10 Using wildcards to italicize magazine/book titles Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,371
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 could replace:
[ a-zA-Z]@[,0-9]
with:
[0-9].[!,0-9]@[,0-9^t^l^13]
With this expression, the formatting will stop before a comma, number, tab, manual line break or paragraph break - whichever comes first.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
A macro to find interjections from a list and italicize them FabioDD Word VBA 8 03-15-2022 06:28 AM
Using wildcards to italicize magazine/book titles Magazine-like templates in Word 2019? dylansmith Word 2 05-11-2020 03:58 PM
How can I change the order of book pages of an existing book to left-to-right instead of right to le Iris12 Publisher 0 02-06-2018 09:37 AM
Digital Magazine Publications! epublisherWorld1 Publisher 0 08-28-2017 03:49 AM
Using wildcards to italicize magazine/book titles magazine column style Nasser Word 4 04-21-2010 02:41 PM

Other Forums: Access Forums

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