Jay
Wed Jul 05 09:34:19 CDT 2006
No, and for a very good reason: You wouldn't want a macro virus to be able
to get access to your VBA environment, to be able to write whatever code it
wants there. It would be a huge security hole.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Ryan wrote:
> Any way to check that box programatically?
>
> "Jay Freedman" wrote:
>
>> Normally, pasting in macro code is not a security issue. There is one
>> area, though...
>>
>> Does the newly pasted code use the VBE object and its child objects
>> to manipulate macro code? If so, you need to go to the macro security
>> dialog, click the Trusted Publishers tab, and check the box for
>> "Trust access to Visual Basic Project".
>>
>> --
>> Regards,
>> Jay Freedman
>> Microsoft Word MVP FAQ:
http://word.mvps.org
>> Email cannot be acknowledged; please post all follow-ups to the
>> newsgroup so all may benefit.
>>
>> On Fri, 26 May 2006 18:59:02 -0700, Henslow
>> <Henslow@discussions.microsoft.com> wrote:
>>
>>> When I migrated to Word 2003, I brought most of my Word 97 macros
>>> with me. I just remembered one I had forgotten, and opened the old
>>> application, copied the code, and pasted all the code for the macro
>>> it into the Word 2003 VBA editor (macros for Normal.dot). When I
>>> tried to run the macro, it said that my security settings wouldn't
>>> allow the macro to work.
>>>
>>> How do the security settings distinguish between pasted code from
>>> somewhere else and a macro that is recorded in Word and then
>>> edited? I don't understand what I did that caused a security issue.