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

  • Home
  • SEARCH
  • 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 8922949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:58:48+00:00 2026-06-15T06:58:48+00:00

I have a spreadsheet that uses ActiveX. I realized that if a user selects

  • 0

I have a spreadsheet that uses ActiveX. I realized that if a user selects No when prompted for ActiveX the first time and then saves the worksheet, the worksheet will never prompt for the user to enable ActiveX again.

However, the worksheet I am developing requires ActiveX to be enabled. So my question is:

If an user selects No the first time when prompted to enable ActiveX and saves the worksheet. How can I still prompt for ActiveX on the next re-open of the worksheet? In other words, how can I always prompt for user to enable ActiveX?

  • 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-15T06:58:49+00:00Added an answer on June 15, 2026 at 6:58 am

    There is a login macro in my worksheet that would throws an error if ActiveX was not enabled. So, if ActiveX was not enabled, I isolated and caught that error and forced a save and shut down of the worksheet.

    Code:

    Private Sub Workbook_Open()
      ' ...some code...
      On Error GoTo InitializeLoginErrorHandler:
        DoLogin
    
      Exit Sub
    
      InitializeLoginErrorHandler:
        MsgBox "ActiveX has not been enabled. ActiveX must be enabled for worksheet to function. Restart worksheet and enable ActiveX." _
          & vbNewLine & vbNewLine & "worksheet will now close without saving any changes."
        ThisWorkbook.Close savechanges:=False
    End Sub
    
    Private Sub DoLog()
      ' Login to system through linked .dlls and .ocx. This portion requires ActiveX to be enabled. 
    End sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel spreadsheet that uses a TFS query to pull information on
I have an Excel spreadsheet that will sit out on a network share drive.
I have a google spreadsheet that uses this function: =SUM(E:E) - SUM(C:C) It adds
All, We have an Excel spreadsheet that uses ADOMD to query OLAP cubes and
I have an app that uses a google spreadsheet to populate a menu and
I have a spreadsheet that has 2 columns, the first is a unique identifier,
I have an application that uses COM interop to create a spreadsheet which is
I have a spreadsheet that uses a string convention to convey levels of detail
I have a program that uses excel to do some modifications to a spreadsheet.
I have a spreadsheet that our office uses for scheduling. Each tab represents a

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.