Results 1 to 14 of 14
  1. #1
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Hyperlink Warnings (2003)

    I have added a toolbar button and assigned a hyperlink which opens a Word Help File (C:Program FilesMicrosoft OfficeOFFICE111033WDMAIN11.CHM). The button works properly except each time I click on it, I get a pop up which states "Hyperlinks can be harmful to your computer and data...... Do you want to continue?" When I select Yes, another pop up opens which states "Some files can contain viruses which can be................Would you like to open this file?"

    Is there a way to eliminate both of these messages? I have looked in the Word security settings but have not been able to come up with anything.
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hyperlink Warnings (2003)

    Well, John. Just thought I'd let you know that I could find nothing either on the MSKB, the Microsoft.Public.Newsgroups, nor the Microsoft MVP page. You must be the only one having this problem. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  3. #3
    Lounger
    Join Date
    Jul 2003
    Location
    Portland, Oregon, USA
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hyperlink Warnings (2003)

    My problem isn't quite the same but very similar to John's. I have added several programs (Acrobat, Word Perfect, Scanner, etc.) to my Word (2002) toolbar. When I click on any of the buttons, I have to click through the message about "some files can contain viruses . . ." before I am able to get into the corresponding program. I was told this has something to do with digital signatures or certificates but so far I haven't been able to figure out how to fix it.

  4. #4
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Hyperlink Warnings (2003)

    Well. it's obviously tied to hyperlinks somehow. To test this, I followed the same procedure to create a button which launches Excel (assigned a hyperlink) with exactly the same results. So then I used VBA to code the procedure as below:
    Sub Excel()
    Dim RetVal
    RetVal = Shell("C:Program FilesMicrosoft OfficeOFFICE11Excel.exe", 1)
    End Sub

    Worked prefectly. I then susbstituted the following code to lauch the help file:
    Sub Wordhelp()
    Dim RetVal
    RetVal = Shell("C:Program FilesMicrosoft OfficeOFFICE111033WDMAIN11.CHM", 1)
    End Sub

    However, each time I run this code, I get an Error 5 and when I debug, the middle line (RetVal = Shell............) is highlighted. I can't see any error in this but it won't run. Yet, if I double click the same file (WDMAIN11.CHM) from Explorer, the help file opens up properly. Any suggestions?
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hyperlink Warnings (2003)

    Edited to add: Disregard this post. See Rebel's post & my response below.

    Hi Mary:
    I'm still using Word 2000, but hopefully the procedure is similar (the menu options might be somewhat different ). I think Word 2002 has a security tab in Tools/Options. If I'm wrong, then maybe it's still in Tools/Macros.../Security. First, you can set your security to medium, if it isn't already. Secondly, there is a tab where you can check "Trust all installed add-ins & templates". This will prevent you from getting the prompt if you place templates in your templates folder.
    Hope this helps,

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Hyperlink Warnings (2003)

    Just a guess: Shell is a bit retarded about long file names and other post-Windows 3.1 stuff. Try this approach, which relies on the Windows Script Host (but uses late binding, so you don't need to set a reference):

    Sub StartRun(strCommandLine As String)
    Dim wShell As Object
    Set wShell = CreateObject("WScript.Shell")
    wShell.Run strCommandLine
    Set wShell = Nothing
    End Sub

    Sub Test_StartRun()
    StartRun """C:Program FilesMicrosoft OfficeOFFICE111033WDMAIN11.CHM"""
    End Sub

    The triple """ embeds a single " in the command string. This is necessary if there are spaces in the path or file name.

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Hyperlink Warnings (2003)

    To make a more obvious suggestion, perhaps, could you use:

    Sub CallHelpIndex()
    Application.Help wdHelpIndex
    End Sub

    Note: If you run it from inside the VBE, you get VB help. When run from inside Word, it calls up Word help. Check the online doc for the Help method for more constants that open different parts of the program.

  8. #8
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Hyperlink Warnings (2003)

    Jefferson,
    This works perfectly. Thank you very much. Also, thank you for pointing out that many of these .chm files were still available in your previous <!post=post,363152>post<!/post> in the "What has happend to the Word Help Files" thread.
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

  9. #9
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Hyperlink Warnings (2003)

    Hi Phil,
    Jefferson's code in Post 364069 solved my problem. Still searching for an answer to the hyperlink method though. I too will post back if I find anything.
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

  10. #10
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Hyperlink Warnings (2003)

    Mary Ann,
    Jefferson's solution in post <font color=red>364069</font color=red> in this thread solved the problem. Cut and paste ALL of his code into your VBA editor and then simply replicate and modify the last part of the code for each application you want to open.
    eg.
    Sub Start_Excel()
    StartRun """C:Program FilesMicrosoft OfficeOFFICE11Excel.exe"""
    End Sub
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

  11. #11
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hyperlink Warnings (2003)

    Hi John:
    You're absolutely right. I checked it out in Word 2000 & got the same thing. You can link to a file without getting the warning, but as soon as you try to link to an application, you get the warning...even a Microsoft app. In older versions of Office, MS used to have a Microsoft toolbar which opened other MS applications with one click. So far, I don't know how to disable this. I can't believe that I couldn't find anything on the newsgroups or KB either, since now I know it's been around for some time. I'll post back if I hear anything.

    Mary: I was clearly wrong in my post above.

  12. #12
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hyperlink Warnings (2003)

    Hi John:
    Did you ever find an answer to the hyperlinks problem; i.e. finding a way to prevent the message from coming up?

  13. #13
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hyperlink Warnings (2003)

    Hi John:
    Cindy Meister found the answer. I could not find it searching the KB, but it's there. See <!mskb=829072>Microsoft Knowledge Base Article 829072<!/mskb> How to disable hyperlink warning messages in Office 2003. I followed the steps & it works. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    Hope this helps,

  14. #14
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Hyperlink Warnings (2003)

    Thanks Phil,
    I'll definitely give that a try.
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •