Microsoft Office Forums Changing word order

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2019, 10:41 PM
Qontrax Qontrax is offline Changing word order Windows 10 Changing word order Office 2013
Novice
Changing word order
 
Join Date: Jun 2019
Posts: 3
Qontrax is on a distinguished road
Default Changing word order

Hello everyone,



I have different Word files with over 3000 pages. The problem I'm having is that on every 2 pages there is a heading - defined in word as Heading 1 (Using styles) - where the words are in a wrong order. All headings have the same format consisting of a word then a word between brackets followed by a number. F.e Word1 (Word2) 123.
Is there a macro where i could change all headings to this format: Word2 (Word1) 123? If you have any questions don't hesitate to ask them. I'll try to explain it more clearly.

Kind regards,
Lauren Van Roy
Reply With Quote
  #2  
Old 06-12-2019, 12:48 AM
gmayor's Avatar
gmayor gmayor is offline Changing word order Windows 10 Changing word order Office 2016
Expert
 
Join Date: Aug 2014
Posts: 2,761
gmayor is just really nicegmayor is just really nicegmayor is just really nicegmayor is just really nice
Default

Is there a reason why you cannot use the replace function. Replace
(Word1) (\(Word2\)) ([0-9]{1})
with
\2 \1 \3
with the wildcard option set?
If you want to batch process several documents then see https://www.gmayor.com/document_batch_processes.htm
__________________
Graham Mayor - MS MVP (Word)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 06-12-2019, 01:40 AM
Qontrax Qontrax is offline Changing word order Windows 10 Changing word order Office 2013
Novice
Changing word order
 
Join Date: Jun 2019
Posts: 3
Qontrax is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
Is there a reason why you cannot use the replace function. Replace
(Word1) (\(Word2\)) ([0-9]{1})
with
\2 \1 \3
with the wildcard option set?
If you want to batch process several documents then see https://www.gmayor.com/document_batch_processes.htm
Wow didn't even knew this was an option. Solved my problem, thanks a lot!

Kind regards,
Qontrax
Reply With Quote
Reply

Tags
headings, styles, word order

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I paste items in the order they were copied, not the order the are listed? manish500 Word 6 07-25-2018 12:07 AM
Changing word order Changing the order of endnotes in a word document Skravletattus Word 2 04-28-2017 01:04 PM
Changing order of animations in slide show mode mrbutler88 PowerPoint 1 02-14-2015 11:57 PM
Slides suddenly changing order jshepnz PowerPoint 0 08-11-2013 04:07 PM
Changing word order Changing Order of AutoText Fields Bill Bisco Word 1 08-30-2012 02:06 PM


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


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