![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a sub that inserts a hyperlink to the heading matching the selected text in MS Word 2013. The header's range is found using: HTML Code:
Selection.Find.Execute Although the range is restored correctly (and I'm back at the selected text), usually the view of the page is shifted, as if it was scrolled up or down a bit. Since these shifts are sometimes large, I find them annoying enough to want to avoid this. Is that possible? I tried this by saving/restoring various built-in MS Word bookmark ranges, for example: HTML Code:
ActiveDocument.Bookmarks("\page").Range
The thing is that the find.execute moves the focus to the heading found. Is there a way to disable this focus change? Thanks! |
| Tags |
| find focus |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How to find exact matches only in an excel spreadsheet
|
zhead | Excel | 6 | 09-09-2016 07:52 AM |
| Outlook restore from backup didn't seem to find the Calendar. | BudVitoff | Outlook | 0 | 09-08-2015 01:04 PM |
Moving focus to format style box from keyboard
|
lawrencehare | Word | 4 | 11-08-2012 01:08 PM |
How to find exact phrase
|
CabbageTree | Outlook | 2 | 05-14-2012 11:24 AM |
Find and Execute
|
cksm4 | Word VBA | 1 | 10-22-2011 11:36 PM |