Re: Cannot saveas HTML in VBA
From: Tushar Mehta (tmUnderscore200310_at_tushar-mehta.SeeOhEm)
Date: 03/30/04
- Next message: Keven: "Change teh default printer......"
- Previous message: Tushar Mehta: "Re: Customer Database"
- In reply to: Chris: "Cannot saveas HTML in VBA"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Mar 2004 13:23:23 GMT
Can you save using XL's GUI?
If you turn on the XL macro recorder before saving the file, what code
does XL generate?
Does that code work when you execute it using the same logon ID used to
create the code?
Does that code work if you use the automated process (with whatever
logon ID) that you are trying to develop?
-- Regards, Tushar Mehta www.tushar-mehta.com Excel, PowerPoint, and VBA add-ins, tutorials Custom MS Office productivity solutions In article <14f1201c41576$b52101e0$a401280a@phx.gbl>, chris.fridd.removelastdot@uk.fujitsu.com says... > I cannot get VBA to save a html file it says that the save > location is read only. Which I know for a fact is untrue. > I have written code inoutlook to save an attachment to a > folder as a xls file. I have to open it up then save as a > HTM file . I can open it up only by using a read only > option as it says it is in use. It will then save as a htm > which fails saying it is ready only access. If I then open > up excel the file is still there in html format and then I > click save as web page it does it. Why does it not do it > in VB code. > the code i use is below with the serve name changed. I use > the excel 10 referrence. > > Excel.Workbooks.Open "\\fakeserver\the web\WWWROOT\Daily > Demand Report\daily demand.xls" > Excel.ActiveWorkbook.SaveAs "\\fakesever\the > webb\wwwroot\daily demand report\Daily Demand.htm", xlHtml > > any help would be appreicated > Thanks > Chris >
- Next message: Keven: "Change teh default printer......"
- Previous message: Tushar Mehta: "Re: Customer Database"
- In reply to: Chris: "Cannot saveas HTML in VBA"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|