VBA problems with excel embedded in IE

P

Per Winkvist

Hello,

I'm having problems with excel when its running within Internet Explorer.
Both these functions fails for me.

Public Sub Test2()
ActiveWorkbook.SaveCopyAs "c:\testwb.xls"
End Sub

=> Run-time error 1004: Method 'SaveCopyAs' of object '_Workbook' failed

Then I tried to use PublishObjects instead but that fails as well:

Public Sub Test1()
Set po = ActiveWorkbook.PublishObjects.Add(xlSourceSheet,
"c:\test.html", ActiveSheet.Name, "", xlHtmlStatic, "", "title")

po.AutoRepublish = False
po.Publish (True)
End Sub

=> Method 'Publish' of object 'PublishObject' failed. The error code is:
1004

Are there limitations on what can called when excel is run inside IE?

Thanks,
Per
 
D

dbahooker

so you click on an XLS url; and it opens the 'xls in ie'

right?

you're not talking about office web components are you??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top