+ Reply to Thread
Results 1 to 9 of 9

textbox only visible after clicking cell

  1. #1
    Forum Contributor
    Join Date
    08-20-2012
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    184

    textbox only visible after clicking cell

    Hi

    I am experiencing what is most likely a simple error. the below only works after a click in any cell to effectively bring it to life. what do I need to add to get it to do this automatically?

    Please Login or Register  to view this content.
    Many thanks in advance

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: textbox only visible after clicking cell

    You mean you have to trigger the worksheet change before the textbox becomes visible? Most likely it was saved in an invisible state? You could add a workbook open event and put the same code in there, so that each time the workbook is opened, the textbox will be visible if V10 = "Default".
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Contributor
    Join Date
    08-20-2012
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: textbox only visible after clicking cell

    Hi, many thanks for your response.

    yes and no. V10 is a linked cell to a combo box. so based on the outcome of the combo box, the textbox will appear or not.

    sorry, not sure what you mean by the 'invisible state'.

    Best regards

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: textbox only visible after clicking cell

    Oh.... I see, so when you change the combobox to "Default", nothing happens until you click on a cell?

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: textbox only visible after clicking cell

    can you provide the workbook? (no data required, just the combobox and code)

  6. #6
    Forum Contributor
    Join Date
    08-20-2012
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: textbox only visible after clicking cell

    I have attached a workbook.

    As you will see, if you click in any cell after changing from 'Default' to 'Other', the textbox will appear / disappear...but not automatically.

    Many thanks
    Attached Files Attached Files

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: textbox only visible after clicking cell

    When a sheet changes via VBA, the change event does not trigger.... replace your worksheet change event with a new sub:

    Please Login or Register  to view this content.
    This will trigger when the combobox changes, so it will work as you want I believe.

  8. #8
    Forum Contributor
    Join Date
    08-20-2012
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: textbox only visible after clicking cell

    perfect, thanks for your help.

  9. #9
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: textbox only visible after clicking cell

    Happy to help milo!

    Please remember to mark the thread as solved if the issue is dealt with to your satisfaction.

+ 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. request password when clicking on visible/unhidden excel sheet/tab
    By deanusa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2016, 11:16 AM
  2. [SOLVED] Not able to make DTPicker visible again after clicking button
    By jeroen78 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2016, 09:56 AM
  3. Replies: 4
    Last Post: 01-29-2014, 05:53 AM
  4. Error checking of visible filtered data - Display text in textbox if no data visible
    By cocobean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 12:58 AM
  5. [SOLVED] Clear Textbox, after clicking 2 times
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2012, 06:32 PM
  6. [SOLVED] Hide excel sheets but visible after clicking on hyperlink from main sheet.
    By naveen4pundir in forum Excel General
    Replies: 2
    Last Post: 03-29-2012, 02:16 AM
  7. Update textbox by clicking into it
    By MarkinWoodacre in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-27-2011, 02:52 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