PC Review


Reply
Thread Tools Rate Thread

Changing macro security causes VBA code to fail

 
 
andy.kai.chan@gmail.com
Guest
Posts: n/a
 
      25th Oct 2008
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".
 
Reply With Quote
 
 
 
 
OssieMac
Guest
Posts: n/a
 
      25th Oct 2008
You need to consider your personal situation but I find the Trusted Locations
saves me a lot of hassel with my own developed applications. Look up Trusted
Locations in help.

--
Regards,

OssieMac


"(E-Mail Removed)" wrote:

> 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".
>

 
Reply With Quote
 
ahkai
Guest
Posts: n/a
 
      26th Oct 2008
On Oct 24, 9:03*pm, OssieMac <Ossie...@discussions.microsoft.com>
wrote:
> You need to consider your personal situation but I find the Trusted Locations
> saves me a lot of hassel with my own developed applications. Look up Trusted
> Locations in help.
>
> --
> Regards,
>
> OssieMac
>
>
>
> "andy.kai.c...@gmail.com" wrote:
> > 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".- Hide quoted text -

>
> - Show quoted text -


Thanks OssieMac. We actually have a certificate for the file too.
Trusted locations are an issue, as we have 1000's of users of this
Excel form. Thanks for the feedback though.
 
Reply With Quote
 
OssieMac
Guest
Posts: n/a
 
      26th Oct 2008
Sorry but I can't offer any other suggestions
--
Regards,

OssieMac



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Macro Security in Excell 2007 Jay Miyaki Microsoft Excel Misc 3 5th Jun 2008 04:43 PM
Changing Macro Security settings does not work =?Utf-8?B?UmljayBIYW1tZXR0?= Microsoft Excel Programming 1 10th Aug 2005 09:54 PM
Prevent User from Changing Macro Security =?Utf-8?B?Sm95Y2VKb3NlcGg=?= Microsoft Word Document Management 1 31st Mar 2005 08:49 PM
Changing Macro Security =?Utf-8?B?S2lyaw==?= Microsoft Excel Programming 5 3rd Mar 2005 03:28 AM
macro security setting keep changing CC Microsoft Access Security 1 2nd Feb 2004 08:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 PM.