Re: Cannot saveas HTML in VBA
From: as above (anonymous_at_discussions.microsoft.com)
Date: 03/30/04
- Next message: Chris: "Customer Database"
- Previous message: Peter Huang: "RE: SaveAs not working in excel xp vba"
- In reply to: jaf: "Re: Cannot saveas HTML in VBA"
- Next in thread: Tushar Mehta: "Re: Cannot saveas HTML in VBA"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Mar 2004 23:17:35 -0800
THanks for the reply . But sorry your wrong the path was
split over 2 lines due to the forum. Any way i can save it
from excel. It is also only for internal use (intranet)
and I work with the people who design the web pages that
link to the file once it is created.
also the xls file is saved to same location which means it
is not a permissions thing either.
oh well i better get back to the drawing board.
chris
>-----Original Message-----
>Hi Chris,
>Just a guess. NOT!
>"webb\wwwroot" is a dead give-away.
>Your trying to write a file to a web server.
>Most files are stored on web servers in folders set to
read only mode.
>This is a web server permissions/security setting to
prevent people from
>doing exactly what your trying to do.
>
>The best way to solve your problem is to call your host
and have them create
>a new folder for your file and set the folders
permissions to read/write.
>Most likley they will insist on you using (passing) a
password in the
>process.
>
>Not to mention you may need to upload it in FTP mode.
>
>
>--
>John
>johnf 202 at hotmail dot com
>
>
>"Chris" <chris.fridd.removelastdot@uk.fujitsu.com> wrote
in message
>news:14f1201c41576$b52101e0$a401280a@phx.gbl...
>| 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: Chris: "Customer Database"
- Previous message: Peter Huang: "RE: SaveAs not working in excel xp vba"
- In reply to: jaf: "Re: Cannot saveas HTML in VBA"
- Next in thread: Tushar Mehta: "Re: Cannot saveas HTML in VBA"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|