Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run time error!

Hello all!

A quick question. I could save an active sheet in a workbook using th
following VBA command.

ActiveSheet.SaveAs FileName:=filesaveName, FileFormat:=xlText

It ran just fine in my computer where Excel 97 is installed. However
when I ran the same macro in another computer where Windows XP i
installed (I guess it is a different version of Excel loaded in it).
am getting a message that says quote " runtime error 1004
application-defined or object-defined error". I would appreciate yo
comments on this guys.
Thanks alot.

Arun Iyer
Vextec Corp

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Run time error!

Hi
try
ActiveSheet.SaveAs FileName:=filesaveName, FileFormat:=xlTextWindows

xlText is used for Pivottables and not for specifying a fileformat


--
Regards
Frank Kabel
Frankfurt, Germany

"aiyer " schrieb im Newsbeitrag
...
Hello all!

A quick question. I could save an active sheet in a workbook using

the
following VBA command.

ActiveSheet.SaveAs FileName:=filesaveName, FileFormat:=xlText

It ran just fine in my computer where Excel 97 is installed. However,
when I ran the same macro in another computer where Windows XP is
installed (I guess it is a different version of Excel loaded in it).

I
am getting a message that says quote " runtime error 1004:
application-defined or object-defined error". I would appreciate you
comments on this guys.
Thanks alot.

Arun Iyer
Vextec Corp.


---
Message posted from http://www.ExcelForum.com/


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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
run-time error '91'-Close Button error ASCO IS Help Excel Discussion (Misc queries) 1 May 8th 06 04:25 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Run-time error '11' & Run-time error '1004' Piers Clinton-Tarestad Excel Programming 0 January 9th 04 08:35 PM
Run-time error '11' & Run-time error '1004' Piers Clinton-Tarestad Excel Programming 0 January 9th 04 07:45 PM


All times are GMT +1. The time now is 02:15 PM.

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

About Us

"It's about Microsoft Excel"