Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi David
Thanks, that gives me a good starting point to look into. Thanks a bunch Thanks PP "davidm" wrote: A less elegant way to go about your problem is to disable your code upon closing via Workbook_BeforeClose event. Make sure you insert an early line of "Exit clause" in your PivotTable procedure as shown. Your event handler: Private Sub Workbook_BeforeClose(Cancel As Boolean) * SheetX. Range("a65536").value = 99* 'or any text/number, and where SheetX is blank End Sub Sub PivotTbl() If SheetX.Range("a65536").value=99 '(or whatever) then Exit Sub <code End sub -- davidm ------------------------------------------------------------------------ davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645 View this thread: http://www.excelforum.com/showthread...hreadid=395057 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving Excel 2007 file in 2003 creates very large file | Excel Discussion (Misc queries) | |||
Can i recover my excel file after saving with new data? | Excel Discussion (Misc queries) | |||
saving dbf file without losing data | Excel Discussion (Misc queries) | |||
Close file without saving data | Excel Programming |