K
Kevin
Just upgraded to 2003 and immediately got hit by the macro security
deal. Found some code that purports to fix this programmatically:
Sub Security()
' Dim secAutomation As MsoAutomationSecurity
' secAutomation = Application.AutomationSecurity
' Application.AutomationSecurity = msoAutomationSecurityForceDisable
' With Application.FileDialog(msoFileDialogOpen)
' .Show
' .Execute
' End With
' Application.AutomationSecurity = secAutomation
End Sub
but a compile stops on MsoAutomationSecurity, and I can't find where to
create a reference to it. Searches on MSKB and Google haven't helped.
Where is this puppy? I really don't want want to go to each users
machine and go through the multi-step process to turn security low, or
stop programmatically changing queries.
Kevin
deal. Found some code that purports to fix this programmatically:
Sub Security()
' Dim secAutomation As MsoAutomationSecurity
' secAutomation = Application.AutomationSecurity
' Application.AutomationSecurity = msoAutomationSecurityForceDisable
' With Application.FileDialog(msoFileDialogOpen)
' .Show
' .Execute
' End With
' Application.AutomationSecurity = secAutomation
End Sub
but a compile stops on MsoAutomationSecurity, and I can't find where to
create a reference to it. Searches on MSKB and Google haven't helped.
Where is this puppy? I really don't want want to go to each users
machine and go through the multi-step process to turn security low, or
stop programmatically changing queries.
Kevin