RobBroekhuis
Technical User
After making my exit as an "expert", dare I come back with a question? Well, here goes...
I have an application that reads in data from .csv files, does a boatload of manipulation (adds worksheets, formulae, graphs, etc), and saves as a .xls. Works like a charm. Problem is, every workbook so created behaves oddly in one way: as soon as it is opened, the workbook.saved property is false. This of course prompts Excel to always ask whether to save the file, even if I just open and immediately close it. Rather annoying. The workbooks have just one piece of VBA code - a worksheet_change handler, which does not fire upon opening the workbook. They do not have a workbook_open handler (although I temporarily put one in with just a "stop" command, to try to trace this behavior). There are no application event handlers in place either. I can get around this by placing thisworkbook.saved=true in a new workbook_open handler, but that just doesn't seem right. Anybody have suggestions on what might be causing this?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
I have an application that reads in data from .csv files, does a boatload of manipulation (adds worksheets, formulae, graphs, etc), and saves as a .xls. Works like a charm. Problem is, every workbook so created behaves oddly in one way: as soon as it is opened, the workbook.saved property is false. This of course prompts Excel to always ask whether to save the file, even if I just open and immediately close it. Rather annoying. The workbooks have just one piece of VBA code - a worksheet_change handler, which does not fire upon opening the workbook. They do not have a workbook_open handler (although I temporarily put one in with just a "stop" command, to try to trace this behavior). There are no application event handlers in place either. I can get around this by placing thisworkbook.saved=true in a new workbook_open handler, but that just doesn't seem right. Anybody have suggestions on what might be causing this?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)