Closed Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    35

    Show Textbox Caption

    i have a sheet with 10 CheckBoxes, if one or all are choosen, i want to see the text that are in front of the checkboxes, appear in another sheet, but only the text belong to the check boxes that were choosen.

    I dont know how to do that, can you help me ?
    Last edited by davesexcel; 12-13-2009 at 10:58 AM. Reason: Bad title,1st time user, needs to read the rules

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Cochrane,Alberta
    MS-Off Ver
    XL 2003,2007
    Posts
    6,259

    Re: Show Textbox Caption

    What kind of check boxes?, how did you make them? This is actually relevant to the correct answer.
    Dave


  3. #3
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Show Textbox Caption

    the Checkboxes, are selection boxes, i grab from the form and draw in the sheet

    i am a beginning, i hope i can make me understand.....

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Cochrane,Alberta
    MS-Off Ver
    XL 2003,2007
    Posts
    6,259

    Re: Show Textbox Caption

    How about this,
    Copy this code, right click on the Checkbox and select Assign Macro,select New or edit depending if you have a macro assigned to it already.
    paste this code between the sub ...() and end sub
    Code:
        Dim myCBX As CheckBox
        Set myCBX = ActiveSheet.CheckBoxes(Application.Caller)
    
        If myCBX = xlOn Then
            Worksheets("Sheet2").Range("A1") = myCBX.Caption
        Else
            Worksheets("Sheet2").Range("A1") = ""
        End If
    Dave


  5. #5
    Registered User
    Join Date
    12-13-2009
    Location
    Lisbon,Portugal
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Show Textbox Caption

    ok, it didnt work, maybe its because i am a noob....

    i will send the file :

    the goal is all the checkboxes that appear in the sheet named APF Form (total are 104), when checked, the text that is in front appear on the sheet named relatorio, in the cells at yellow, of course is many checkboxes are selected, it could appear as a scroll in the yellow cells (that are merged).

    i hope this can help.
    Attached Files Attached Files
    Last edited by Nuno Neves; 12-14-2009 at 06:12 AM.

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.2.0