I would like to click an autoshape drawing and have the workbook close with the option to save or not.
Thx,
I would like to click an autoshape drawing and have the workbook close with the option to save or not.
Thx,
Create a simple macro withOriginally Posted by kane
in it, then assign that macro to the shape.Activeworkbook.Save
Thx, but not really what I need.
I want to click the drawing and have the workbook close and the dialog
box("Do you want to save the changes you made to abc.xls? Yes, No, Cancel") come up and give me the option to save or not.
Hi there,
Just change it a little, but still assign it to a shape.
Code should read:
It should prompt you if any changes were made.Activeworkbook.Close
HTH,
Ken Puls, CMA - Microsoft MVP (Excel)
I hate it when my computer does what I tell it to, and not what I want it to.
Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar
This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!
Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!
Ok, that was too easy
Thx,
Glad to be of help!
Ken Puls, CMA - Microsoft MVP (Excel)
I hate it when my computer does what I tell it to, and not what I want it to.
Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar
This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!
Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!