Results 1 to 3 of 3

Thread: RESUME.XLW : Exporting to Excel

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    48

    Question

    Hi everyone,

    I have VSFlexGrid on my application that shows data from a database. I have a function to save the content of the grid into Excel format.

    Everything works fine, except everytime I want to export, it tells me that RESUME.XLW already exists, and if I want to rewrite it. I have to say Yes to make the exporting process successful. Now I realize that RESUME.XLW is probably the temporary file for the data before it's saved in excel format.

    Now the question is, how do I make that question not appear? The one whether I want to rewrite RESUME.XLW. I want that file to be deleted automatically, or at least not ask and automatically rewrite it. Any ideas? Thanks in advance!

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Excel.application.displayalerts = false

    Excel won't prompt you for any changes, but will just do as it's told (if only women were more like that! )

    You need a referencce to the Excel library as you're probably aware - Project Menu > References > Microsoft Excel 9.0 Library etc.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    48

    Thumbs up Perfect

    Alex,

    Thanks a lot for the tip. It does exactly what I wanted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width