Hi,
It can be done, but I don't think anyone around here who knows how to disable the 'enable macros' prompt will tell you how. I certainly don't know how. If you think about, there's two problems with attempting to bypass the 'enable macros' prompt. First, you can't have a macro execute when you haven't enabled macros yet, and second, allowing this message to be bypassed would totally defeat the purpose of it being there in the first place, which is to prevent your Excel from running macros you don't know about. It would make writing viruses a breeze.
There are two workarounds. The easy one is to lower your security settings, but I don't like this method, as it leaves you unprotected from viruses. The second is to use digital signatures.
To create and use a digital signature:
Run the Office 2000 setup program.
On the Select Features screen in the setup program, expand Office Tools.
Select Digital Signature for VBA projects, click the arrow next to your selection, and then select Run from My Computer.
In Windows Explorer, locate and then double-click the file SelfCert.exe in C:Program FilesMicrosoft OfficeOffice.
Note, Because a digital certificate that you create yourself isn’t issued by a formal certification authority, macro projects that are signed by using such a certificate are referred to as self-signed projects. Depending on how your organization uses the digital-signature features in Microsoft Office, you might be prevented from using such a certificate, and other users might not be able to run self-signed macros for security reasons.
Once you've digitaly signed your work, the first time you open the file on a users computer, it will ask if the digital certificate is to be trusted. You can tell XL to always trust code signed by this person.
From then on, the user's computer, regardless of security setting, files will open without disable macros prompt.
If there's any reason that this doesn't work, let me know, but from experience around the office and with applications I've sent around the state, its always worked.
HTH,
_________________<EMBED width="118" height="52" src="http://corticus.biz.ly/CorticusLink.swf"></EMBED>
This message was edited by Corticus on 2002-11-28 22:46