Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2020, 09:05 AM
John 4 John 4 is online now Bold all Wikipedia subheadings, without bolding lots of text above them as well. Windows 10 Bold all Wikipedia subheadings, without bolding lots of text above them as well. Office 2016
Novice
Bold all Wikipedia subheadings, without bolding lots of text above them as well.
 
Join Date: Oct 2019
Posts: 16
John 4 is on a distinguished road
Default Bold all Wikipedia subheadings, without bolding lots of text above them as well.

Hi,

I’m trying to bold all subheadings in certain Wikipedia articles. I thought this would be fairly straightforward seeing that they’re all followed by “[edit]”. But no matter what I try it won’t limit itself to the desired sub-heading and instead selects lots of text above/before the sub-heading as well. These are examples of the kind of codes I’ve been trying:
^13*\[edit\]
Progressing to things like:
<[A-Z]*[a-z]>\[edit\]

I’ve tried numerous other things so as to limit it to the desired line/subheading, but nothing works. Can one of you tell me what I’m doing wrong? (apart from reading Wikipedia articles).

If you try it out on the following extracts from Wikipedia’s “Western Philosophy” article you’ll see what I mean:

Plato[edit]


Plato was a student of Socrates. Plato founded the Academy of Athens and wrote a number of dialogues, which applied the Socratic method of inquiry to examine philosophical problems…

Aristotle[edit]
Aristotle was a pupil of Plato. Aristotle was perhaps the first truly systematic philosopher and scientist. He wrote about physics, biology, zoology, metaphysics, aesthetics, poetry, theater, music, rhetoric, politics and logic. Aristotelian logic was the first type of logic to attempt to categorize every valid syllogism…

Hellenistic period[edit]
Following Socrates a variety of schools of thought emerged. In addition to Plato's Academy and Aristotle's Peripatetic school, other schools of thought derived from Socratic philosophy included the Academic Skeptics…

============

Thanks for your time.
Reply With Quote
  #2  
Old 08-01-2020, 08:11 PM
Guessed's Avatar
Guessed Guessed is offline Bold all Wikipedia subheadings, without bolding lots of text above them as well. Windows 10 Bold all Wikipedia subheadings, without bolding lots of text above them as well. Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 1,708
Guessed is a glorious beacon of lightGuessed is a glorious beacon of lightGuessed is a glorious beacon of lightGuessed is a glorious beacon of lightGuessed is a glorious beacon of light
Default

In my opinion, you are going about this the wrong way.

Try using the 'Autoformat...' button that you can add to your Quick Access Toolbar. This makes short work of what you are trying to achieve.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bold all Wikipedia subheadings, without bolding lots of text above them as well. How to write a macro for bolding text between quotes jwall Word VBA 3 12-09-2019 10:04 PM
Bold all Wikipedia subheadings, without bolding lots of text above them as well. bold (or unbold) section of text instead of bold toggling Burt Word 6 04-06-2019 09:09 AM
Bold all Wikipedia subheadings, without bolding lots of text above them as well. Custom Slide Master - unable to edit subheadings lubiden PowerPoint 4 02-23-2016 01:48 PM
Bold all Wikipedia subheadings, without bolding lots of text above them as well. Text in #1 is made bold, rest of the document is edited, text in #1 is now not bold footer-assistance Word 1 06-29-2015 03:49 AM
Bolding in script ksigcajun Word VBA 10 02-23-2015 08:29 AM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 07:41 AM.


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