Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have code like this: ThisWorkbook.Saved = True in the last line of the Workbook_BeforeClose event. When I open my workbook and click on the X to close it I'm not prompted if I would like to save the workbook under Excel 2003 but under Excel 2000 I got that message to save. On my sheets I have few Command buttons picked from the Control Toolbox. Any ideas why I'm having the save message only with Excel 2000. Thank you. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Weird. Adding some command buttons do not cause a problem like this for me
under Excel 2000. No idea what it might be though. -- Jim "Ben" wrote in message ... | Hi, | I have code like this: ThisWorkbook.Saved = True in the last line of the | Workbook_BeforeClose event. When I open my workbook and click on the X to | close it I'm not prompted if I would like to save the workbook under Excel | 2003 but under Excel 2000 I got that message to save. | On my sheets I have few Command buttons picked from the Control Toolbox. | | Any ideas why I'm having the save message only with Excel 2000. | | Thank you. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Do you have any comboboxes/listboxes (from the control toolbox toolbar) in the
workbook? If you do, do they have linkedcells and listfillranges on the same sheet? Maybe you could try (against a copy) dropping both the linkedcells and listfillranges to see if you're still prompted. Ben wrote: Hi, I have code like this: ThisWorkbook.Saved = True in the last line of the Workbook_BeforeClose event. When I open my workbook and click on the X to close it I'm not prompted if I would like to save the workbook under Excel 2003 but under Excel 2000 I got that message to save. On my sheets I have few Command buttons picked from the Control Toolbox. Any ideas why I'm having the save message only with Excel 2000. Thank you. -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dave,
I have comboboxes/listboxes on few user forms not on the worksheets of the workbook. "Ben" wrote: Hi, I have code like this: ThisWorkbook.Saved = True in the last line of the Workbook_BeforeClose event. When I open my workbook and click on the X to close it I'm not prompted if I would like to save the workbook under Excel 2003 but under Excel 2000 I got that message to save. On my sheets I have few Command buttons picked from the Control Toolbox. Any ideas why I'm having the save message only with Excel 2000. Thank you. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry, I don't have another guess.
Ben wrote: Hi Dave, I have comboboxes/listboxes on few user forms not on the worksheets of the workbook. "Ben" wrote: Hi, I have code like this: ThisWorkbook.Saved = True in the last line of the Workbook_BeforeClose event. When I open my workbook and click on the X to close it I'm not prompted if I would like to save the workbook under Excel 2003 but under Excel 2000 I got that message to save. On my sheets I have few Command buttons picked from the Control Toolbox. Any ideas why I'm having the save message only with Excel 2000. Thank you. -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Are any of those controls tied back to a worksheet?
If you remove them (in that test workbook), does the problem go away? Ben wrote: Hi Dave, I have comboboxes/listboxes on few user forms not on the worksheets of the workbook. "Ben" wrote: Hi, I have code like this: ThisWorkbook.Saved = True in the last line of the Workbook_BeforeClose event. When I open my workbook and click on the X to close it I'm not prompted if I would like to save the workbook under Excel 2003 but under Excel 2000 I got that message to save. On my sheets I have few Command buttons picked from the Control Toolbox. Any ideas why I'm having the save message only with Excel 2000. Thank you. -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dave,
Yes, they are tied to a worksheets and when I removed them the problem go away. Maybe I have to change them, but I still don't understand why I'm having this problem. "Dave Peterson" wrote: Are any of those controls tied back to a worksheet? If you remove them (in that test workbook), does the problem go away? Ben wrote: Hi Dave, I have comboboxes/listboxes on few user forms not on the worksheets of the workbook. "Ben" wrote: Hi, I have code like this: ThisWorkbook.Saved = True in the last line of the Workbook_BeforeClose event. When I open my workbook and click on the X to close it I'm not prompted if I would like to save the workbook under Excel 2003 but under Excel 2000 I got that message to save. On my sheets I have few Command buttons picked from the Control Toolbox. Any ideas why I'm having the save message only with Excel 2000. Thank you. -- Dave Peterson |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't know why it works that way. But you may want to put all the
"assignments" in code. Ben wrote: Hi Dave, Yes, they are tied to a worksheets and when I removed them the problem go away. Maybe I have to change them, but I still don't understand why I'm having this problem. "Dave Peterson" wrote: Are any of those controls tied back to a worksheet? If you remove them (in that test workbook), does the problem go away? Ben wrote: Hi Dave, I have comboboxes/listboxes on few user forms not on the worksheets of the workbook. "Ben" wrote: Hi, I have code like this: ThisWorkbook.Saved = True in the last line of the Workbook_BeforeClose event. When I open my workbook and click on the X to close it I'm not prompted if I would like to save the workbook under Excel 2003 but under Excel 2000 I got that message to save. On my sheets I have few Command buttons picked from the Control Toolbox. Any ideas why I'm having the save message only with Excel 2000. Thank you. -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to disable mailto link under Excel 2000 ? | Excel Discussion (Misc queries) | |||
Disable 'save' command in Excel 2000 | Excel Discussion (Misc queries) | |||
disable autosorting in Pivot Table Excel 2000 | Excel Discussion (Misc queries) | |||
how can i enable or disable the paste option in excel 2000 | Excel Worksheet Functions | |||
How can I disable error pop-ups in Excel 2000? | Excel Discussion (Misc queries) |