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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:23:57+00:00 2026-05-29T05:23:57+00:00

I asked a similar question Here and now I need to do the same

  • 0

I asked a similar question Here and now I need to do the same thing again but this time using VBA in Excel 2010.

Essentially I have numerous text boxes with generic names (i.e. textbox1,textbox2 etc). How can I programically construct the object reference so that I can create a loop?

EDIT:
It is a regular textbox on a worksheet. When I start a sub for this worksheet I can reference the textboxes with the following line:

TextBox1.LinkedCell = "B2"
  • 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-05-29T05:23:58+00:00Added an answer on May 29, 2026 at 5:23 am

    This is what your after:

    Dim oleObj As OLEObject
    'Dim oleTxtBox As TextBox
    
    For Each oleObj In Sheet1.OLEObjects
        If oleObj.OLEType = xlOLEControl Then
            If Mid(oleObj.progID, 1, 14) = "Forms.TextBox." Then
                Set oleTxtBox = oleObj.Object
                oleTxtBox.PasswordChar = "*"
            End If
        End If
    Next
    

    Just using PasswordChar as an example field from the TextBox object, but it wouldn’t actually left me Dim as a TextBox

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

Sidebar

Related Questions

Now this question looks similar to the question I've asked here , however, this
I found this on Google, click here , which someone asked a similar question,
Liu Chang asked a very similar question to this one here, Linux equivalent of
I asked a similar question about this previously, but I did not specify that
I asked a similar question yesterday, but recognize that i need to rephase it
This is very similar to a question I asked the other day but my
I asked a similar question like this yesterday but after waiting for ever I
I already asked a similar question but this one is a bit different/specific: I'm
I asked a similar question a few weeks ago, but now the requirements have
This user asked a similar question but had no viable solution in the answers,

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.