Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Save As - Multiple Sheets fails to save as text file

Hi,
I have a VB program which saves a single column containing
text from a workbook, as a text or a html file. The data
source is from SQL Server 2000. I ran into a problem when
the number of rows execeeded 65536, which I handled it by
continuing across multiple sheets. Now I can only save the
single sheet as a text / html file at a time.
Is there any ideas / suggestions which would help me point
in the right direction as a hack to the solution of
exporting multiple sheets onto a single output file.

Env: VB 6 / Excel 2000 / NT 4.0 / SQL 7

Thanks for your time and help
Ravee.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Save As - Multiple Sheets fails to save as text file

Use low level file IO to write a file in the format of your choosing - you
format it the way you want

http://support.microsoft.com/support...eio/fileio.asp
File Access with Visual Basic® for Applications

--
Regards,
Tom Ogilvy

"Ravee Srinivasan" wrote in message
...
Hi,
I have a VB program which saves a single column containing
text from a workbook, as a text or a html file. The data
source is from SQL Server 2000. I ran into a problem when
the number of rows execeeded 65536, which I handled it by
continuing across multiple sheets. Now I can only save the
single sheet as a text / html file at a time.
Is there any ideas / suggestions which would help me point
in the right direction as a hack to the solution of
exporting multiple sheets onto a single output file.

Env: VB 6 / Excel 2000 / NT 4.0 / SQL 7

Thanks for your time and help
Ravee.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Save As - Multiple Sheets fails to save as text file

Tom,
Thanks very much for your help. Let me check it out if its
feasible to fudge my program to do that.

Will update the status later

Regards
Ravee.

-----Original Message-----
Use low level file IO to write a file in the format of

your choosing - you
format it the way you want

http://support.microsoft.com/support...ontent/fileio/

fileio.asp
File Access with Visual Basic® for Applications

--
Regards,
Tom Ogilvy

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
Excel fails on Save/Save As DanG[_2_] Excel Discussion (Misc queries) 11 May 16th 08 02:36 PM
vba for selecting multiple sheets to save as a new book Sharon Excel Worksheet Functions 5 March 16th 07 12:53 AM
copy the same raws of all sheets from about a 100 file to a new sheet of a book and save the file [email protected] Setting up and Configuration of Excel 0 March 14th 07 02:13 AM
Excel fails to save ChrisH Excel Discussion (Misc queries) 3 January 6th 06 01:30 PM
Excel fails to save properly Rolls Excel Discussion (Misc queries) 1 April 22nd 05 07:00 PM


All times are GMT +1. The time now is 09:24 PM.

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"