+ Reply to Thread
Results 1 to 7 of 7

Concatenation of TextBox Name

  1. #1
    Registered User
    Join Date
    02-13-2018
    Location
    Dallas, Texas
    MS-Off Ver
    2007
    Posts
    5

    Concatenation of TextBox Name

    Is is possible to Concatinate the name of a textbox?

    To test this, place an ActiveX TextBox on an empty spreadsheet. In the Name field, designate it BlackTextBox.

    Then use this code:

    Please Login or Register  to view this content.
    However, you will find that normal rules of concatination do not apply to TextBox Names.

    So, what is the solution to this problem? Can TextBox names be concatinated and if so, how?

    Thank you for your expert advice.
    Last edited by Pepe Le Mokko; 09-18-2019 at 02:35 AM.

  2. #2
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    10,404

    Re: Concatenation of TextBox Name

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I will do it for you this time. Please read forum rules
    You really don't have to give me rep points for moderating. It's part of the job. Keep rep points for those who find solutions

  3. #3
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    10,404

    Re: Concatenation of TextBox Name

    Is this some kind of homework?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003, 2007, 2010 & 2013
    Posts
    18,935

    Re: Concatenation of TextBox Name

    try

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    02-13-2018
    Location
    Dallas, Texas
    MS-Off Ver
    2007
    Posts
    5

    Re: Concatenation of TextBox Name

    Thanks Andy. Iíll employ your solution and tell you how well it functioned tomorrow.
    And for Pepe, no, this is not homework. It's for a sophisticated strategy game.
    In the future I will endeavor to present queries in the proper form.
    Again, thank you all for your interest and expertise.

  6. #6
    Registered User
    Join Date
    02-13-2018
    Location
    Dallas, Texas
    MS-Off Ver
    2007
    Posts
    5

    Re: Concatenation of TextBox Name

    Andy. You are the man. When noone else knew how to solve this... you did!!! I've spent over a week researching and inquiring, trying to find a solution. Some even thought it wasn't possible. Or would be a very complicated code. But you solved it elegantly and simply. Thanks a million!!!

  7. #7
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    10,404

    Re: Concatenation of TextBox Name

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1