+ Reply to Thread
Results 1 to 4 of 4

A Given TextBox to Appear When a Cell Displays a Specific Value

  1. #1
    Registered User
    Join Date
    08-11-2020
    Location
    UK
    MS-Off Ver
    2016
    Posts
    2

    A Given TextBox to Appear When a Cell Displays a Specific Value

    Hi All,

    I am making a problem solver where operators tick certain tick boxes and i want a text box to appear with specific help instructions.
    I have generated a cell which will return a specific value based on what process variables are ticked.
    I want to make a text box visible when a certain number is displayed in a given cell to give the operator help instructions.
    I will have about 20-30 different numbers to be generated and need them all linked to a given cell when their number is generated.
    I have been struggling to generate a code which makes the text box visible/invisible when that required number is in a cell.

    Many thanks for any assistance!

    Cheers,
    Tom

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: A Given TextBox to Appear When a Cell Displays a Specific Value

    Big yellow banner at the head of the page - how to upload a workbook.
    Help us to help you - far easier to envisage with the actual article at hand.

  3. #3
    Registered User
    Join Date
    08-11-2020
    Location
    UK
    MS-Off Ver
    2016
    Posts
    2

    Re: A Given TextBox to Appear When a Cell Displays a Specific Value

    Hi, Thanks for your response. I cant upload the file itself as my company has a policy against this.
    Simply, If the number 1 appears in cell A1, i want TextBox1 to appear. If there is no number in that cell, Make Textbox 1 invisible
    Thanks for the help!

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: A Given TextBox to Appear When a Cell Displays a Specific Value

    UDF (UserDefinedFunction) added to a code module

    Please Login or Register  to view this content.
    Formula in A2
    =ShowTextbox("Textbox 1",A1=1)

    The formula uses the name of the textbox to affect and the state of visibility


    Any reason why you can not simply use a formula or Conditional formatting to reveal text within a cell? No VBA would be required then
    Cheers
    Andy
    www.andypope.info

+ 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. In same row Textbox value in column1 displays textvalue in column2
    By gipsyfkls14 in forum Access Tables & Databases
    Replies: 0
    Last Post: 11-10-2018, 07:37 PM
  2. Replies: 3
    Last Post: 09-20-2018, 12:05 PM
  3. add 12:00 displays on userform in textbox change to 0:05 ?
    By max-7 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2016, 01:48 PM
  4. Replies: 3
    Last Post: 11-28-2013, 09:54 AM
  5. UserForm TextBox occasionally displays tiny, unreadable text
    By yay_excel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-08-2013, 05:07 PM
  6. Edit Cell Colour if other cell displays specific text
    By macky18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 07:46 AM
  7. [SOLVED] Creating a colour code that displays in a specific % cell based upon figures entered
    By 'MMSA_MAX in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2012, 08:10 AM

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