Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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_N EW 2006\4_Updating\BB-Pup-Chassis-2006_R1C0.xls") Application.ScreenUpdating = True End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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_N EW 2006\4_Updating\BB-Pup-Chassis-2006_R1C0.xls") Application.ScreenUpdating = True End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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_N EW _ 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" wrote in message ... 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_N EW 2006\4_Updating\BB-Pup-Chassis-2006_R1C0.xls") Application.ScreenUpdating = True End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA select default Don't Enable / Enable macros Setting | Excel Programming | |||
Enabled macros | Excel Programming | |||
Open workbook-macros enabled, opening another with macros | Excel Programming | |||
enable macros as default | Excel Programming | |||
Suppress the Disable Macros / Enable Macros Dialog | Excel Programming |