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 8191705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:58:36+00:00 2026-06-07T03:58:36+00:00

I’m currently building a VBA based application on Microsoft Excel. I used simple activeX

  • 0

I’m currently building a VBA based application on Microsoft Excel.

I used simple activeX control to get the user ID/password. The problem with this is that the user might be able to view the password’s value by viewing the “properties” of the activeX label

Is there any way that I can prevent the user from activating the “Design” mode and seeing the values of the textboxes directly? Or is there any better way to store the credentials on the system? The reason why I use the textboxes is because they are simpler for the user to use (you can save the value and hence you can use the program in the future without the need to retype the userid/password again) and it’s simple to maintain (no need forms/popups)

Thank you for your help.

This is how the id/password box on the sheet look like (using activeX control)

The problem is that the user can see the value of the password textbox if they open the design mode -> properties

  • 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-07T03:58:37+00:00Added an answer on June 7, 2026 at 3:58 am

    I would create a UserForm to handle the username/password system. The form could save the username and password to a very hidden sheet by setting the ‘Visible’ property for the sheet to ‘xlSheetVeryHidden’ in the VBA IDE. The sheet can’t be unhidden unless you go into the VBA IDE and change the visible property.

    Sheet visibility property

    When the form is opened, load the data from two ranges on that sheet. You can set the range names to be hidden from the Name Manager in case you are concerned about users working out the range names and putting the value into a cell.

    The only people who would know what the cell range names are, and where to access them, would be those with access to the VBA code. So protect that with a password and it will be as secure as you can make it in Excel, well at least in my view.

    Security is a relative thing in any case. How secure something needs to be depends on how important the data is. If it is just to keep people from messing with things they shouldn’t then simple security is fine. If it is highly confidential data then you shouldn’t be allowing users to save a password anyway. A username perhaps, but not a password.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I need to clean up various Word 'smart' characters in user input, including but

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.