Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default message when activating OLE object

I have added the help file to my template as a PDF OLE Object which is
displayed by calling the simple procedure executing the following statement:

Worksheets("HelpSheet").OLEObjects("HelpFile").Act ivate

On execution of the macro the following warning statement is displayed:

You are about to activate an OLE object that may contain viruses or may
otherwise be harmful to your computer. You may want to verify that this
object comes from a trustworthy source before you continue
Do you want to continue ?

Is it any way to skip this warning message and open the PDF file ?

Thanks for help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default message when activating OLE object

does this work?
Application.DisplayAlerts=False

"Tony" wrote:

I have added the help file to my template as a PDF OLE Object which is
displayed by calling the simple procedure executing the following statement:

Worksheets("HelpSheet").OLEObjects("HelpFile").Act ivate

On execution of the macro the following warning statement is displayed:

You are about to activate an OLE object that may contain viruses or may
otherwise be harmful to your computer. You may want to verify that this
object comes from a trustworthy source before you continue
Do you want to continue ?

Is it any way to skip this warning message and open the PDF file ?

Thanks for help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default message when activating OLE object

Yes it does. I have added two lines

Application.DisplayAlerts=False

on the begining of my sub, and

Application.DisplayAlerts=True

on the end of my sub.

Thanks for help.

Tony

"gocush" wrote:

does this work?
Application.DisplayAlerts=False

"Tony" wrote:

I have added the help file to my template as a PDF OLE Object which is
displayed by calling the simple procedure executing the following statement:

Worksheets("HelpSheet").OLEObjects("HelpFile").Act ivate

On execution of the macro the following warning statement is displayed:

You are about to activate an OLE object that may contain viruses or may
otherwise be harmful to your computer. You may want to verify that this
object comes from a trustworthy source before you continue
Do you want to continue ?

Is it any way to skip this warning message and open the PDF file ?

Thanks for help.

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
Activating object from Excel cell Amnon Wilensky Excel Worksheet Functions 2 March 29th 09 06:46 PM
Close Excel server after activating OLE object Goofball Excel Discussion (Misc queries) 1 March 13th 08 05:32 PM
Activating a Chart object Hari Prasadh Charts and Charting in Excel 6 August 2nd 05 07:22 PM
How to hide Excel window when activating a Shape object Yi[_2_] Excel Programming 4 October 8th 03 02:36 PM
How to hide Excel window when activating a Shape object Bob Kilmer Excel Programming 0 September 27th 03 03:51 PM


All times are GMT +1. The time now is 12:48 AM.

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

About Us

"It's about Microsoft Excel"