Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default problem with SaveAs method of excel in IIS 5

I want to transform excel to html.
I create a object with
Set excelObj = Server.CreateObject("Excel.Application")

and use the object as following
excelObj.DisplayAlerts = False
excelObj.Interactive = False
excelObj.ScreenUpdating = False
excelObj.Workbooks.Open TempPath & repFileName & ".xls"
excelObj.Workbooks(1).Activate
excelObj.Workbooks(1).RefreshAll
excelObj.Workbooks(1).SaveAs TempPath & repFileName & ".htm",44

An error is issued at the last line:
Microsoft Excel error '800a03ec'
Method SaveAs of class Workbook is invalid.

what's wrong? permissions?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using SaveAs method Sujata Excel Discussion (Misc queries) 4 March 30th 10 07:21 AM
Excel SaveAs() method Sandrina Excel Programming 0 February 6th 06 02:51 PM
A little help with SaveAs Method please Stitch45 Excel Programming 1 April 30th 05 01:41 AM
Error Excel: 1004 SaveAs method of Workbook class failed sebastien Excel Programming 0 August 13th 03 09:59 AM


All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"