Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7940379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:22:14+00:00 2026-06-03T23:22:14+00:00

I have code like this which opens Word documents for editing from our intranet,

  • 0

I have code like this which opens Word documents for editing from our intranet, obviously called when the related button is clicked:

  Dim objWord
  Sub Btn956_onclick()
    call OpenDoc("\\server01\folder1\docname.docx")
  End Sub
  Sub OpenDoc(strLocation)
    Set objWord = CreateObject("Word.Application")
    objWord.Visible = true
    objWord.Documents.Open strLocation
  End Sub

To get this to work in IE (our standard browser for staff), I need to get them to do a one-off change to their internet security settings (otherwise they just get a javascript error). In particular, the “Initialize and script ActiveX controls not marked as safe” setting for the Intranet Zone is changed from disable to enable.

To help users get this setting updated without technical help, I need a way of notifying them that the setting needs to be changed when it’s not correctly set. Is there a way I can programmatically detect that the above OpenDoc command is failing because they haven’t updated their settings?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:22:17+00:00Added an answer on June 3, 2026 at 11:22 pm

    You would have to read the registry to do so. But the place where is OS and IE version dependent.
    eg for IE6
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings and HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings
    and probably others too.

    It depends on the security zone your site is in also.
    To read the registry in your script the user would need enough permissions.
    On the other side if the user has enough rights you could set the setting right from your script, he should just have to comfirm some prompt i presume.

    I think your best bet is to set the setting right with group policy and distribute these setting to the workstations. If you don’t use group policies you could seek and test the right registry keys and the distribute through a logon script or by letting them manually load a .reg file by doubleclicking it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a code like this below, which gives me a $link that equals
I have a code like this, which is solved by me following a exercise
I have code which needs to do something like this There is a list
I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody
I have some Java code which looks roughly like this: String urlString = ftp://polar.ncep.noaa.gov/pub/history/waves/multi_1.glo_30m.dp.200601.grb2;
I'm training code problems like UvA and I have this one in which I
I have this code, which works fine, but I would like to be able
I have code like this: var newMsg = new Msg { Var1 = var1,
I have code like this: template <typename T, typename U> struct MyStruct { T
I have code like this to move the player in my game left, right,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.