Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default "Programmatic Access to be Denied" displays when running macro on excel in XP

Please help me that I had wroten a macro in excel file.
When the macro run on the Windows 2000 platform, it has
not any error. But when it run on Windows XP platform,
the message box will be displayed "Programmatic Access to
be Denied" and need to click the "continue" button to
continue to run the program.

How can I set the option to omit this alert box in excel
when running the macro in Windows XP?

Thanks a lot.

Best Regards,
Stephen Fong.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default "Programmatic Access to be Denied" displays when running macro on excel in XP


"Stephen Fong" wrote in message
...
Please help me that I had wroten a macro in excel file.
When the macro run on the Windows 2000 platform, it has
not any error. But when it run on Windows XP platform,
the message box will be displayed "Programmatic Access to
be Denied" and need to click the "continue" button to
continue to run the program.

How can I set the option to omit this alert box in excel
when running the macro in Windows XP?




You need to go in to Excel in XP and

1) On the Tools menu, click Macro, and then click Security to open the Macro
Security dialog box.

2) On the Trusted Sources tab, click to select the Trust access to Visual
Basic Project check box to turn on access.

3) Click OK to apply the setting. You may need to restart the application
for the code to run properly if you automate from a Component Object Model
(COM) add-in or template.

Keith


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default "Programmatic Access to be Denied" displays when running macro on excel in XP

Hi Keith,

I had try to set the setting in Excel but it still doesn't
work. Does it miss any COM add-in in the program that is
different in Windows 2000? Please advise. Thanks.

Best Regards,
Stephen Fong.
-----Original Message-----

"Stephen Fong"

wrote in message
...
Please help me that I had wroten a macro in excel file.
When the macro run on the Windows 2000 platform, it has
not any error. But when it run on Windows XP platform,
the message box will be displayed "Programmatic Access

to
be Denied" and need to click the "continue" button to
continue to run the program.

How can I set the option to omit this alert box in excel
when running the macro in Windows XP?




You need to go in to Excel in XP and

1) On the Tools menu, click Macro, and then click

Security to open the Macro
Security dialog box.

2) On the Trusted Sources tab, click to select the Trust

access to Visual
Basic Project check box to turn on access.

3) Click OK to apply the setting. You may need to restart

the application
for the code to run properly if you automate from a

Component Object Model
(COM) add-in or template.

Keith


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default "Programmatic Access to be Denied" displays when running macro on excel in XP


"Stephen Fong" wrote in message
...
Hi Keith,

I had try to set the setting in Excel but it still doesn't
work. Does it miss any COM add-in in the program that is
different in Windows 2000? Please advise. Thanks.

Best Regards,
Stephen Fong.


Not as far as I know. I got that problem when trying to
manipulate the VBA in the Excel 2002 worksheet
from a VB6 program. There's a separate security tab
to trus com add-ins.

Keith


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel displays "l" instead of "‚¬" symbol for Euro values lex63 Excel Discussion (Misc queries) 1 April 17th 09 10:10 AM
ACCESS ="NO" BUT EXCEL DISPLAYS "0" pauld Excel Discussion (Misc queries) 2 March 12th 09 02:11 AM
"access denied" message when open Excel, MS 2007 piciu Excel Discussion (Misc queries) 1 February 12th 09 01:32 AM
I get "Access Denied" trying to open network files. BKirk Excel Discussion (Misc queries) 0 March 10th 07 12:40 AM
How do I recover from "Access Denied" in Excel? 3 Cabbage Excel Discussion (Misc queries) 2 May 11th 06 10:04 AM


All times are GMT +1. The time now is 03:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"