+ Reply to Thread
Results 1 to 5 of 5

Dynamically set the property of a TextBox

  1. #1
    Registered User
    Join Date
    07-20-2019
    Location
    North Pole
    MS-Off Ver
    2016
    Posts
    3

    Dynamically set the property of a TextBox

    I have a Worksheet with the names of 34 different TextBox's in column 4. In column 5 I have the names of various colors. In column 6 I have the name of a Sub, for example
    tbxCat1 vbYellow TextBoxSettings1
    tbxCat2 vbCyan TextBoxSettings1 <==========There are 6 different TextBoxSettings Subs
    etc.
    I read all of these into two arrays:
    Please Login or Register  to view this content.
    I think the error is something to do with "Dim tbxName() As String"
    Can anyone advice?

    Regards

    Joe
    Last edited by Pepe Le Mokko; 10-02-2019 at 03:07 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Dynamically set the property of a TextBox

    Joe

    Where do you get the error in the code?

    PS When posting code can you please use CODE tags?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-20-2019
    Location
    North Pole
    MS-Off Ver
    2016
    Posts
    3

    Re: Dynamically set the property of a TextBox

    Thank you Norie,

    I'm new to this,I'll check out what TAG's are and try to give a better questions in future.

    Regards

    Joe

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Dynamically set the property of a TextBox

    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 did it for you this time. Please read forum rules. Thanks

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Dynamically set the property of a TextBox

    Hi and welcome
    although we value privacy as much as anyone else, it could be important that members have a rough idea of your location. You might in the future post questions which are bound to your regional settings.
    So, please update your profile to something more precise then "North Pole" ( country will suffice, no need to be more precise).
    Thank you for helping us to help you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dynamically set the property of a TextBox
    By JoeCampanini in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2019, 04:16 PM
  2. [SOLVED] Change width of Textbox dynamically
    By naveenmarapaka in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2014, 07:52 AM
  3. Dynamically linking textbox and cell
    By Leeban in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2014, 04:04 PM
  4. [SOLVED] TextBox-self calculating property ?
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2013, 03:25 PM
  5. Set property of TextBox class
    By RUOTAHEL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-16-2010, 04:49 AM
  6. Set PivotItem.Visible property dynamically
    By drocco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2008, 12:46 PM
  7. Textbox property change
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2008, 07:05 PM

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