Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Run Time Automation error

Status
Not open for further replies.

coltsfan1969

Computer
Aug 11, 2010
1
0
0
US
I'm trying to run a macro from an excel spreadsheet that opens up a webpage and populates it with dtaa from the spreadsheet. Before getting a windows 7 64bit computer, this worked great but now I'm getting the error. Excel 2007 is what I am also using but before the new computer, I was also using 2007. It works fine if you run as "admin" but this is not an option for all my people to do this. When I debug, it stops the Do While m_IE.readystate line.

Private Sub WaitForIEReady()
Do While m_IE.busy: DoEvents: Loop
Do While m_IE.readyState <> 4: DoEvents: Loop
Do While m_IE.document Is Nothing: DoEvents: Loop
Do While m_IE.document.readyState <> "complete": DoEvents: Loop
Sleep 200
End Sub

Security settings are set at enable all macros and the box is checked allowing access to VB project

Any clues as to why you would have to be an adim to get this to work?

Thanks,

Rex
 
Replies continue below

Recommended for you

More appropriate for tek-tips.com...

Dan - Owner
Footwell%20Animation%20Tiny.gif
 
Status
Not open for further replies.
Back
Top