Hi
Can you check if Application.AutomationSecurity helps you
Sub Security()
Dim secAutomation As MsoAutomationSecurity
secAutomation = Application.AutomationSecurity
Application.AutomationSecurity = msoAutomationSecurityByUI
Workbooks.Open (sFileName)
Application.AutomationSecurity = secAutomation
End Sub
Cheers
Shasur
--
http://vbadud.blogspot.com
"Curt" wrote:
> After all this time I have a program that does fine on my comp. When I put it
> on another it says go to online help for macros enable. On my comp when I
> open it asks to enable. Is there any code that I can put into excel to have
> it enable when opening or to display screen that allows enable. Have become
> aware of security settings. Assumeing they are high on foreign comp.
> Thanks for any assistance.