Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 10-31-2021, 03:28 PM
davidjm davidjm is offline how do I replace string 123-4 with 123 4 Windows 10 how do I replace string 123-4 with 123 4 Office 2016
Novice
how do I replace string 123-4 with 123 4
 
Join Date: Jun 2018
Posts: 18
davidjm is on a distinguished road
Default

Hi Andrew,
I understand that Word has built in indexing functionality, but I was presented with this index by someone who didn't use that, I'd like to help him and also learn a little VBA.

The full story is that pages 29-30 are new so any page number in the index > 28 need to be increased by 2, that includes individual page numbers and page references that span more than 1 page. I'm not experienced enough to decide what to do about the inconsistencies of the roll over digit, seems to me best to just keep the format as it is so
that 298-9 becomes 300-1 and 198-99 becomes 200-01, but I'm looking for the easiest coding solution. Your initial script was a great help and I'll use that as the base for continuing with this project, and appreciate any suggestions you have.
From what I've explained do you think that I can update the index with just Word's built-in wildcard functionality or do I need RexExp?
Thanks for all your help
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I replace string 123-4 with 123 4 Replace characters in a string Marcia Excel Programming 5 05-04-2020 05:15 AM
how do I replace string 123-4 with 123 4 Wildcard replace any string in context with a specified string wardw Word 7 05-07-2018 09:13 AM
how do I replace string 123-4 with 123 4 Replace multiple strings by one same string at once puff Word 2 02-28-2018 11:04 AM
how do I replace string 123-4 with 123 4 Replace characters in a string Anthon Excel Programming 1 11-03-2016 12:48 AM
How to do multiple find and replace in string. PRA007 Word VBA 2 01-06-2016 09:10 PM

Other Forums: Access Forums

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