Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 04-16-2023, 11:41 AM
ctviggen ctviggen is offline Selecting Text within a document with known start/stop (+searching and tools) Windows 10 Selecting Text within a document with known start/stop (+searching and tools) Office 2016
Advanced Beginner
Selecting Text within a document with known start/stop (+searching and tools)
 
Join Date: Feb 2021
Posts: 54
ctviggen is on a distinguished road
Default

I fixed this error (for at least one running of the macro anyway) by implementing the timer macro discussed here:


https://learn.microsoft.com/en-us/an...table-run-time


I add a one second delay and that seems to work. I assume the previous macro I used did not work because I did something wrong.


And this seems to be a common error when pasting, especially from the clipboard, which is what I do a lot. I created another macro for a completely different purpose where I had to paste the same text multiple times. Ran great when I stepped through the code. Would get tripped up on one of the four pastes when run normally.


Added the delay from the above link (thanks to whoever wrote that!) and it works so far.
Reply With Quote
 

Tags
resources, select text

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching in main body document and text boxes at the same time laith93 Word VBA 0 10-31-2021 10:38 AM
Searching for e-mails in a Shared Mailbox prior to start date. m5fgn Outlook 4 08-08-2019 03:43 AM
Selecting Text within a document with known start/stop (+searching and tools) Change Drawing Tools to Text Box Tools to insert address in labels Alecf Drawing and Graphics 5 09-01-2017 05:27 AM
Start and stop an executeble from vba remmyMartin Outlook 0 01-12-2012 08:09 AM
Selecting Text within a document with known start/stop (+searching and tools) Remove text in start up document Sheila Word 1 09-30-2010 03:33 PM

Other Forums: Access Forums

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