+ Reply to Thread
Results 1 to 4 of 4

Deselecting checkbox to remove content from textbox

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    Finland
    MS-Off Ver
    Office 2016
    Posts
    26

    Deselecting checkbox to remove content from textbox

    Hi Gurus!

    This is probably a very simple thing but I can't figure out how to do it.

    I have a userform which prints data to textboxes once clicked them. However, when I click the checkbox again, I can't get the printed data away from the textbox.

    The code to print data for textboxes are made by If, Then. I guess I should have to put "Else", there somewhere also, but couldn't get it work like that.

    Please find the example from the attachment.

    CheckBoxClickPrintToTextBox.xlsm

    Thx in advance!

    -Odeveleoper

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Deselecting checkbox to remove content from textbox

    Hello ODeveloper,

    You were so close. You just need to expand your IF statement.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Deselecting checkbox to remove content from textbox

    Hi Odeveleoper,
    maybe so
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-22-2015
    Location
    Finland
    MS-Off Ver
    Office 2016
    Posts
    26

    Re: Deselecting checkbox to remove content from textbox

    Thx to both of you guys!

    I guess both solutions work.

    Appreciate! And happy new year!

+ 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. Checkbox.check according to textbox value
    By brainzlp in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-19-2015, 08:49 PM
  2. Replies: 9
    Last Post: 09-16-2015, 08:00 PM
  3. [SOLVED] Checkbox Adding Value To a Textbox
    By saban1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2014, 09:27 AM
  4. [SOLVED] Insert a checkmark by selecting a cell, remove checkmark by deselecting the cell.
    By sherryp5165 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-11-2013, 05:46 PM
  5. [SOLVED] textbox and checkbox
    By ngkj in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-12-2012, 04:21 AM
  6. Deselecting A CheckBox Automatically
    By heliskier89 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-17-2011, 02:22 PM
  7. Replies: 5
    Last Post: 01-28-2011, 07:02 PM

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