Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In my code I open an excel sheet, already made up, that inserts info into certain cells then I print it out. No when I close the excel workgroup I get the message ----- If I Want To Save My Changes. generated from the excel program when closing

 

I remember way back in the day with VB5 that I was able to set something so that it would basically not ask that. I don't want to save what I inserted.

 

Anybody know the command?

Thanks

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi
Posted

Well I found my own answer

Had to put:

xlApp.ActiveWorksheet.Saved = TRUE

 

I am a little confused though, maybe someone can shed some light

this is what I had before

xlApp.ActiveWorksheet.Saved = FALSE

And this would pop up "DO you want to save changes"

I made it true and the pop up doesn't come up, but also doesn't save what i put into the excel sheet.

 

My mind set is if I set to TRUE it would save. But it doesn't. It just doesn't ask If I want to save.

 

So any ideas?

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi
  • 2 weeks later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...