Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2012, 11:33 PM
paulkaye paulkaye is offline Iterative / sequential find and replace Windows 7 64bit Iterative / sequential find and replace Office 2007
Advanced Beginner
Iterative / sequential find and replace
 
Join Date: Nov 2011
Posts: 84
paulkaye is on a distinguished road
Default

Hi Paul,
Thanks for the reply. Unfortunately I got the error:
"Run-time error '5941': The requested member of the collection does not exist."



You probably realise that I don't know what I'm doing, but I clicked "Debug" and the following line was highlighted:
.Paragraphs(i).Range.Words.First = i

Paul

*EDIT*
I've now looked at the text that was left, and have seen that a key piece of information was missing from my description. Some list items have carriage-returns within them. I realise that this is important because the macro you provided replaced (as I assume it was intended to) the first word of each new line with a sequential number - including those lines within list items. I think that the find term "^p*.^t" (or similar) is probably key here - I think that it's the only reliable way to identify the start of each list item.
Reply With Quote
Reply

Tags
find and replace



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterative / sequential find and replace Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Iterative / sequential find and replace Is there a way to use "find/replace" to find italics words? slayda Word 3 09-14-2011 02:16 PM
Iterative / sequential find and replace Find and Replace kjxavier Word 6 08-19-2011 09:56 PM
Iterative / sequential find and replace Find and Replace kjxavier Word 1 08-12-2011 08:57 AM
Iterative / sequential find and replace Help with find and replace or query and replace shabbaranks Excel 4 03-19-2011 08:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:03 PM.


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