Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Aug 11, 2010
Messages
1
Location
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
 
More appropriate for tek-tips.com...

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

Part and Inventory Search

Sponsor

Back
Top