Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2022, 09:17 PM
PolarPop PolarPop is offline Replace lines of text from header in multiple files Windows 10 Replace lines of text from header in multiple files Office 2021
Novice
Replace lines of text from header in multiple files
 
Join Date: May 2022
Posts: 4
PolarPop is on a distinguished road
Default

What Mr. Edstein did is perfect. I wish I knew a fraction of what he does. I have searched this forum in the past and the solutions he comes up with over and over again are amazing. I meant no offense.

I just want to understand what the possibilities are and how I can utilize it in other ways. I want to learn how it works so if my character count was off or changes in the future, I can modify the solution that was provided.



For clarification, in my documents, 3 lines would be closely defined as 3 rows. The first is document number, the second is the document effective date, and the third is the page number (page x of y). Each line ends with a ^p. I now realize that may run into an issue where longer documents would have 53 characters versus the number 52 that I provided.

What does this do?
Code:
wdRngTgt.FormattedText = wdRngSrc.FormattedText

Last edited by PolarPop; 05-25-2022 at 09:39 PM. Reason: Updated
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace lines of text from header in multiple files Replace or apply new header in multiple files Carchee Word VBA 42 07-10-2024 08:47 AM
Doc with autoformatted lines not printing text or header - only lines klunsford11 Word 2 08-07-2020 09:12 PM
VBA to find text, replace with multiple lines of text noslenwerd Word VBA 3 12-31-2019 11:04 AM
Find and replace header text across multiple files LG1972 Excel 1 12-25-2018 04:27 AM
Trying to add space between lines of bulleted text and a new header but both lines are moving??? Martin_d35 Word 2 02-10-2017 07:13 AM

Other Forums: Access Forums

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