Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-04-2013, 05:08 AM
sleake sleake is offline How to Turn Off Message "Search from the beginning of a document" in a Macro Windows XP How to Turn Off Message "Search from the beginning of a document" in a Macro Office 2007
Advanced Beginner
How to Turn Off Message "Search from the beginning of a document" in a Macro
 
Join Date: Jul 2011
Posts: 60
sleake is on a distinguished road
Default How to Turn Off Message "Search from the beginning of a document" in a Macro

I've put together a macro (attached) for our group of editors to use for cleaning up documents to:
  • Add two spaces after a period (a recent "edict" that we all hate!)
  • Remove spaces between words and before punctuation marks of various types
  • Search for two periods and replace with one
Because I don't know how to write "elegant" code, I created separate macros and strung them together in a single macro. It gets the job done with spaces, but each time one of the macros runs, there's a message about continuing the search from the begining of the document (I used Replace all).



How do I suppress those messages, yet ensure that Word continues searching from the beginning? It's a pain to keep clicking OK (and not very elegant besides).

Also, if you have any suggestions about re-writing the code to make it cleaner, I'd appreciate your help.
Attached Files
File Type: docx AddRemoveSpaces Macro.docx (17.5 KB, 10 views)
Reply With Quote
 

Tags
clean up code, suppress messages



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Turn Off Message "Search from the beginning of a document" in a Macro can't turn off "same as previous" traumatiziert Word 8 12-12-2012 03:31 AM
Instant Search's "Display search results as I type when possible" with Exchange lwc Outlook 0 06-01-2011 01:56 AM
How to Turn Off Message "Search from the beginning of a document" in a Macro Instant search not functional because of continuing "indexing" arrigo Outlook 1 12-07-2010 09:13 PM
Outlook search defaulting to "All Mail Items"??? Ninafel Outlook 0 12-02-2010 02:01 PM
Want to search for "class", replacing with document property YetAnotherAuthor Word 0 10-30-2009 09:43 AM

Other Forums: Access Forums

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