PC Review


Reply
Thread Tools Rate Thread

choose default macros Not Enabled / Macros Enable Setting

 
 
=?Utf-8?B?QkVFSkFZ?=
Guest
Posts: n/a
 
      29th Jun 2006
The following opens the file, accessess the file, no problem.
I need code to "select" the default "macros NOT enabled" Setting.
Otherwise, I'm constantly getting a error message.
I've tried using 'select'.
I need the screenupdating = False, because of size and complexity of file.


Sub BB_Chassis_Draft()
Application.ScreenUpdating = False
Workbooks.Open ("S:\10_SALES
MANUALS\Z_JFS\0_Spread_Sheets\10_Modifications\7_NEW
2006\4_Updating\BB-Pup-Chassis-2006_R1C0.xls")


Application.ScreenUpdating = True
End Sub

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      30th Jun 2006
Beejay,
Firstly, you cannot change the macro security setting programmatically. If
you could, it would be pretty pointless.
Secondly, if you disable macros, this code would not run anyway, so
..ScreenUpdating would not be affected.

NickHK

"BEEJAY" <(E-Mail Removed)> wrote in message
news:6C2A0A2A-971A-480A-B8CB-(E-Mail Removed)...
> The following opens the file, accessess the file, no problem.
> I need code to "select" the default "macros NOT enabled" Setting.
> Otherwise, I'm constantly getting a error message.
> I've tried using 'select'.
> I need the screenupdating = False, because of size and complexity of file.
>
>
> Sub BB_Chassis_Draft()
> Application.ScreenUpdating = False
> Workbooks.Open ("S:\10_SALES
> MANUALS\Z_JFS\0_Spread_Sheets\10_Modifications\7_NEW
> 2006\4_Updating\BB-Pup-Chassis-2006_R1C0.xls")
>
>
> Application.ScreenUpdating = True
> End Sub
>



 
Reply With Quote
 
=?Utf-8?B?QkVFSkFZ?=
Guest
Posts: n/a
 
      30th Jun 2006
NickHK:
Sorry I didn't make the situation clear.

The following brings up the required file.
Sub BB_Chassis_Draft()
Workbooks.Open ("S:\10_SALES _
MANUALS\Z_JFS\0_Spread_Sheets\10_Modifications\7_NEW _
2006\4_Updating\BB-Pup-Chassis-2006_R1C0.xls")
End Sub

Since the file has macros in it, a Security Warning pops up.
"macros may contain viruses. etc......................
I'm sure you've seen this lots of times.
There is three options:
'Disable Macros' (in case one is not sure of origin of macros)
'Enable Macros' (if you trust the source of the file)
'More Info'
The Default is 'Disable Macros'. That is the option I need selected.
When I open the file thru 'normal' methods, when the option shows up
I just press Enter to accept the default.
Now I need to have the VBA instruction in the above code, to select that same
default setting.
I hope I've made it clearer, this time.
Looking forward to your thougths.


"NickHK" wrote:

> Beejay,
> Firstly, you cannot change the macro security setting programmatically. If
> you could, it would be pretty pointless.
> Secondly, if you disable macros, this code would not run anyway, so
> ..ScreenUpdating would not be affected.
>
> NickHK
>
> "BEEJAY" <(E-Mail Removed)> wrote in message
> news:6C2A0A2A-971A-480A-B8CB-(E-Mail Removed)...
> > The following opens the file, accessess the file, no problem.
> > I need code to "select" the default "macros NOT enabled" Setting.
> > Otherwise, I'm constantly getting a error message.
> > I've tried using 'select'.
> > I need the screenupdating = False, because of size and complexity of file.
> >
> >
> > Sub BB_Chassis_Draft()
> > Application.ScreenUpdating = False
> > Workbooks.Open ("S:\10_SALES
> > MANUALS\Z_JFS\0_Spread_Sheets\10_Modifications\7_NEW
> > 2006\4_Updating\BB-Pup-Chassis-2006_R1C0.xls")
> >
> >
> > Application.ScreenUpdating = True
> > End Sub
> >

>
>
>

 
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
VBA select default Don't Enable / Enable macros Setting =?Utf-8?B?QkVFSkFZ?= Microsoft Excel Programming 1 29th Jun 2006 08:45 PM
Removing Excel message to enable macros or disable macros =?Utf-8?B?Ym1pbGxlcjI2Mw==?= Microsoft Excel Misc 2 13th Oct 2004 02:39 PM
Open workbook-macros enabled, opening another with macros George J Microsoft Excel Programming 5 17th Sep 2004 02:07 PM
enable macros as default josh Microsoft Excel Programming 2 10th Jun 2004 12:52 PM
Re: The macros in this project are disabled. Please refer to the online help or documentation of the host application to determine how to enable macros. Sue Mosher [MVP-Outlook] Microsoft Outlook Installation 0 17th Feb 2004 05:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:24 AM.