+ Reply to Thread
Results 1 to 2 of 2

Format Multiple Textboxes at once in a Userform

  1. #1
    Registered User
    Join Date
    02-04-2015
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    4

    Format Multiple Textboxes at once in a Userform

    Hello,

    I am trying to format several text boxes in an userform by changing the value in a combination box. Essentially, I have a chart whose number of inputs corresponds to the number in the combo box. Therefore, I would like the text boxes that are not needed to disappear. I could obviously change each one individually, but this would make the code too bulky and unreadable. Below you can kinda see what I am trying to accomplish. Any suggestions would be great! Thanks!

    Private Sub cbNumberOfPipe_Change()


    If Me.cbNumberOfPipe = 1 Then
    With tbA2
    .BackColor = &HE0E0E0
    .SpecialEffect = fmSpecialEffectFlat
    End With
    End If


    End Sub

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Format Multiple Textboxes at once in a Userform

    Changing them one by one is the only way. If they have a consistent naming convention, you could use a loop.
    Entia non sunt multiplicanda sine necessitate

+ 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. Replies: 1
    Last Post: 02-17-2015, 07:11 AM
  2. [SOLVED] Changing multiple textboxes format on a userform
    By Raylou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2014, 10:11 AM
  3. [SOLVED] Curency format in textboxes of userform
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-11-2014, 12:36 PM
  4. Formatting Multiple Userform Textboxes
    By badeye in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2010, 09:14 AM
  5. Is there a way to format all TextBoxes on a UserForm the same at one time?
    By D3Pratt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-02-2009, 09:09 AM

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