Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-27-2024, 12:51 AM
Shelley Lou Shelley Lou is offline VBA Swap text around Windows 10 VBA Swap text around Office 2016
Expert
VBA Swap text around
 
Join Date: Dec 2020
Posts: 259
Shelley Lou is on a distinguished road
Default VBA Swap text around


Many of the older type leases I convert to house style have the text written as schedule & number first then the part & number, they may be capitalised or lowercase and either separated with a comma or a space, depending on the document being converted. The text to be swapped around may also contain cross references or are written as plain text.

Our house style requires that the part & number comes first then the word 'of' and then the schedule & number e.g.:

Instances of Schedule 1, Part 1 should be part 1 of schedule 1; or

Instances of schedule 1 part 1 should be part 1 of schedule 1.

I've been researching on how to swap text but can't seem to find anything at all really. How would I go about swapping the text, include the word 'of' and the code to recognise if it’s a cross reference field or plain text. I'm a bit stumped.

Before
Before.JPG

After
After.JPG

Swap text Part and Schedule around.docx
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I swap managers and subordinates in org chart weety Visio 0 05-23-2024 08:50 AM
swap values s7y Excel Programming 0 05-15-2012 01:32 PM
VBA Swap text around macro to swap between letterhead anno1404 Word VBA 7 03-31-2012 02:33 PM
How do I swap slides during a presentation? Harper PowerPoint 0 08-17-2011 09:13 AM
VBA Swap text around Swap file office1983 Outlook 1 02-15-2011 07:11 AM

Other Forums: Access Forums

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