Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jaf jaf is offline
external usenet poster
 
Posts: 300
Default SaveAs "subscript out of range" error (COM - SOAP)

Did you paste that line?
Should be...
workbooks(1).SaveAs (pathFileName & FileName & ".xls")

workbooks (plural) and you left out the quotes around .xls.



--

John

johnf202 at hotmail dot com


"Matthia" wrote in message
...
Hi to all,
I receive this error n.9 "subscript out of range" when I try to SaveAs my

workbook on other file.

I close excel file on my isolated method on COM in visual basic (and then

I open my Excel file on
other COM method...).

If I try these methods by a simple client in VB I don't receive errors,

but I must use a java
application that communicate with my COM methods via SOAP, then when I use

these my COM go on that
error.

My code on error is:
Excel.Workbook(1).SaveAs (pathFileName & fileName & .xls)

I don't use my public workbook variable (example: xlWB) because strangely

this reference on other
methods result Nothing when used on Java - SOAP - COM - Excel, but work

great with VB client.

Please, help me, thanks to all.


--
--------------------------------------------------------------------------

----
Nick : Matthia
E-Mail :
IRC Nick : Matthia - Matt_WORK - Mat*
ICQ N. Casa : 136775978
ICQ N. Uff. : 133038922
--------------------------------------------------------------------------

----


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
"Select method of Range class failed" Error Ayo Excel Discussion (Misc queries) 3 September 2nd 08 07:58 PM
Create pivot table, error "Range is not valid" Daniel Charts and Charting in Excel 3 July 12th 07 11:12 PM
Error Message "Subscript our of range" gsmclang Excel Discussion (Misc queries) 1 April 5th 07 06:59 PM
Run-time error "1004" Select method of range class failed Tallan Excel Discussion (Misc queries) 3 March 7th 07 05:22 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM


All times are GMT +1. The time now is 01:55 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"