+ Reply to Thread
Results 1 to 5 of 5

Hide/Show Textboxes

  1. #1
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Hide/Show Textboxes

    Hello guys,

    I need to do some calculations, the values are added manually (here for testing I added some values in Sheet4) from printed papers, I tried to hide the unused textboxes (middle line -textboxes 12:20) but I think there are too many if(s) and I can not...
    i.e
    if I want to know the weight for temp= 34, wind=-10kt the textbox12 to be visible and the rest of them (textboxes 13:20) hidden.
    or if I want to know the weight for temp= 34, wind=-5kt the textbox14 to be visible and the rest of them (textboxes 12....20) hidden.
    or if I want to know the weight for temp= 34, wind=-7kt the textboxes12, 13, 14 to be visible and the rest of them (textboxes 15...20) hidden.
    and so on
    I appreciate your help!
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Hide/Show Textboxes

    Not sure if this is exactly what you're looking for but it hides any textbox which has no text

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Hide/Show Textboxes

    hi Andy
    Thank you very much, but I it's not exactly what I'm looking for, since I need to type in it means all textboxes are empty, I need to hide those textboxes (from middle line) which are not related with my area of calculation.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Hide/Show Textboxes

    Can you maybe change the X values to suit ?

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Hide/Show Textboxes

    I give up, I think it's complicated...I tried to do something for the "first part" of my userform, it works, but as you can see there are many combinations till the end and the code will be...let's say just "huge"! LoL
    Thank you very much for your help!
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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