Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Great, glad it worked!
__________________________________________________ _______________________ "pswanie" wrote in message ... thats exactly what i needed!!! thanx... "Vasant Nanavati" wrote: Also, my mistake, sorry. Should be: Private Sub Workbook_BeforeClose(Cancel As Boolean) __________________________________________________ _______________________ "pswanie" wrote in message ... nope no expert at all.... so i will skip the API thingie i tried that but it gave me an error... this is wat i did with the workbook open i right click on the green thingie on left top coner view code paste Public fMacro As Boolean Private Sub Workbook_BeforeClose() If Not fMacro Then Cancel = True End Sub and then in my macro that save and print and quit change ActiveWorkbook.Save Application.Quit to this ActiveWorkbook.Save ThisWorkbook.fMacro = True this did not work. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disable autoformat of "true" and "false" text | Excel Discussion (Misc queries) | |||
how can I disable "cutting cells" and "drag and drop "in excel ? | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Disable "Save" &/or "Close" | Excel Programming |