Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2018, 03:45 AM
Guessed's Avatar
Guessed Guessed is offline Find Options Windows 10 Find Options Office 2016
Expert
Find Options
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,974
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default Find Options

It's taken me many years but I've finally found a vba use for the Navigation Pane Results panel, but I'm having problems with the code.



I can show it with either
CommandBars("Navigation").Visible = True
or
CommandBars.ExecuteMso "NavigationPaneFind"

I can also game it to find a string by selecting that text in the document before running the executemso line.

I can change find options via the GUI (by clicking the dropdown arrow in the field entry > Options ) which opens a built-in dialogbox titled "Find Options". Via the GUI I can set options as Default. Setting these options carries over into the regular find/replace dialog.

What I can't do is find a direct way to set these find options. Recording the Find Options dialog doesn't produce any code whatsoever. Nor can I find it in the wdDialog constants. It appears the only way I might be able to do it is by running a dummy find/replace and maybe make use of the stickiness of those settings.

FWIW: a google search gave me a very old post which didn't look too hopeful but maybe the collective knowledge has increased since then. https://social.msdn.microsoft.com/Fo...?forum=worddev
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro- find and replace from preselected options based on frequency (like an Ad libs) blondie Word VBA 0 02-27-2017 01:41 PM
Clearing find-replace options to default settings paik1002 Word VBA 0 01-28-2016 06:27 AM
Find Options Find what box in Find and replace limits the length of a search term Hoxton118 Word VBA 7 06-10-2014 05:05 AM
Find Options Turn off options crescere Word 1 03-30-2013 11:22 PM
Find Options Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft