Writing to a Excel file 
Author Message
 Writing to a Excel file

I currently know how to write and save data to a Excel file using VB code.
The area that I'm having trouble with is this:

I first what to see if the .xls file exists, if it does then check to see if
it's open, if it is then close it.  If it doesn't exists then create it.

Any suggestions would be much appreciated.

Thanks,
Mike



Wed, 09 Jul 2003 01:44:55 GMT  
 Writing to a Excel file
be warned my help is little.

I wrote a program to enforce file name formats, for mp3's so I wouln't
have to remove underscores and unix periods and crap.  in it I did a
helluva lot of file manipulation.

I had to test a lot of file conditions before I made any changes with
the name command.

if the xls file is opened by your program, you should know.  if it's
open by another program your SOL. Pick another name.  Tack on an
integer or whatever.

to test if a function was performed
 on error resume next
 Err = 0
 i = 0
 open blah.xls 'or whatever you do to open

  while Err <> 0 do
   Err = 0
   i = i + 1
   open "blah" & i & ".xls
  loop
 on error goto 0

' hope this helps somewhat



Quote:
> I currently know how to write and save data to a Excel file using VB
code.
> The area that I'm having trouble with is this:

> I first what to see if the .xls file exists, if it does then check to
see if
> it's open, if it is then close it.  If it doesn't exists then create
it.

> Any suggestions would be much appreciated.

> Thanks,
> Mike

Sent via Deja.com
http://www.deja.com/


Wed, 09 Jul 2003 09:05:32 GMT  
 Writing to a Excel file
I can not help you, but can you tell me how I
write and save data to and Excel file with VB?

Best regards
Erik Lindeberg


Quote:
> I currently know how to write and save data to a Excel file using VB code.
> The area that I'm having trouble with is this:

> I first what to see if the .xls file exists, if it does then check to see
if
> it's open, if it is then close it.  If it doesn't exists then create it.

> Any suggestions would be much appreciated.

> Thanks,
> Mike



Wed, 09 Jul 2003 17:21:12 GMT  
 Writing to a Excel file
I can not help you, but can you tell me how I
write and save data to and Excel file with VB?

Best regards
Erik Lindeberg

Quote:
> I currently know how to write and save data to a Excel file using VB code.
> The area that I'm having trouble with is this:

> I first what to see if the .xls file exists, if it does then check to see
if
> it's open, if it is then close it.  If it doesn't exists then create it.

> Any suggestions would be much appreciated.

> Thanks,
> Mike



Wed, 09 Jul 2003 17:47:24 GMT  
 Writing to a Excel file
Sorry Mike,

Like Erik I would also like to know how how you write and save data to
an Exel file using VB
Do you have a web site or can you email and example.

--
Best regards

Andy Stewartson

+------------------------------+---------------------------------------+
 Andy Stewartson,              | Tel: +44 1634 844400 ext. 4562
 Senior Mechanical Engineer    | Fax: +44 1634 816360
 Mechanical Design Engineering |
 Mission Systems Division      |

 Rochester, ME1 2XX            |



Wed, 09 Jul 2003 17:48:14 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Write to an Excel file from VB without Excel present

2. Can QBasic write and read Excel files?

3. Writing To A Excel File

4. Writing to an Excel file

5. Write and SaveAs Excel files

6. From an ASP page, is there a way write to an EXCEL file without having EXCEL installed on the IIS machine ?

7. How do I create and write to an excel file from ASP?

8. Write a Excel File Without Excel App

9. Writing Excel Files W/O Existing Excel Application

10. Writing Excel-files w/o Excel present?

11. ANNOUNCE : Platform independent toolkit for writing excel file format files

12. Can QBasic write to Excel files?

 

 
Powered by phpBB® Forum Software