Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-10-2012, 10:17 AM
tinfanide tinfanide is offline Run-time error '91': Object variable or With block variable not set Windows 7 64bit Run-time error '91': Object variable or With block variable not set Office 2010 32bit
Expert
Run-time error '91': Object variable or With block variable not set
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

app2.xlsm

The resolution, to my amazement, is desperate.
By adding
Code:
Application.Wait DateAdd("s", 1, Now)
before each time
Code:
oIE.Navigate "URL"
The error does not emerge.

Very long time age I discovered the "trick" of it, but
I hate using it as I dunno... anyway just thought it was not a proper way to tackle run-time errors. Whenever I couldn't explain why the error exists and find the right way to resolve it, just using a hard way... is not going to help me improve my scripting knowledge a lot.
Anyway, don't know what I'm talking about. If anyone knows why the run-time error exists, please do teach me a thing. Thank you in advance.

P.S.:
Indeed, the error normally emerges 3 - 4 times out of 10 trials.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time error '91': Object variable or With block variable not set variable Page references scrinmemphis Word 4 06-06-2012 11:50 PM
XML parsing & Object variable not set (Error 91) tinfanide Excel Programming 0 12-29-2011 08:43 AM
Multi-Variable Lookup help ebolton Excel 8 05-05-2011 05:28 AM
Variable fields? Emalee77 PowerPoint 0 01-30-2011 05:58 PM
Run-time error '91': Object variable or With block variable not set Variable Table_Array in VLOOKUP pdab09 Excel 3 11-23-2010 05:28 AM

Other Forums: Access Forums

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