Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I ran into a problem with code that behaved just like yours. It worked fine
if I stepped throught it in vba, but when it ran, it crashed. To solve, I turned screen updating on prior to the code that was crashing. application.screenupdating = true It may be that Excel 2007 pivot tables require the screen to update to work. Robert Flanagan http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel wrote in message ... Hoping someone has an answer to this one. Using 2003, I've created some VBA macros which work fine when the security level is set to "enable all macros". However, when the security is changed to "disable with notification" in 2007, it sometimes fail. The scary part is that it is inconsistent. If I set a break point, and step through it, it works fun. When I take out the break point, it will crash. The last set of errors comes from Excel not understanding the currentregion property of the active cell. Once this code has been changed, all of a sudden, the pivot table code fails. What's really frustrating is that even if I make a minor tweak, and successfully run through the VBA code, I can close it, shut down Excel, then re-open the file in Excel, and it will fail again!! But, this only seems to happen when the security setting is "disable with notification". |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing Macro Security in Excell 2007 | Excel Discussion (Misc queries) | |||
Code for macro security level | Excel Programming | |||
Placement of variables in called sub causes code to fail | Excel Programming | |||
Changing Macro Security settings does not work | Excel Programming | |||
Changing Macro Security | Excel Programming |