Creating Textbox when a checkbox is checked

  • Hi,



    I am having trouble on finding a solution on how to create a textbox when a checkbox is checked.


    Here is my code:
    On Sheet Browse:

    Code
    With ActiveSheet.TextBoxes.Add(Cells(i + 1, 5).Left, Cells(i + 1, 5).Top, Cells(i + 1, 5).Width, Cells(i + 1, 5).Height)
                        .Name = "Textbox_" & i
                        .Visible = False
                        End With


    On Sheet Generate:


    When I tried running the code the result is:


    [ATTACH=CONFIG]69988[/ATTACH]


    The Textbox is not created nor the visible is True. (Sequence Column).


    Any help is appreciated!


    Thanks!


    Mot

  • Re: Creating Textbox when a checkbox is checked


    Mot, you would really increase your chances of assistance with this if you were to post the spreadsheet instead of a picture of the spreadsheet.

  • Re: Creating Textbox when a checkbox is checked


    This block is wrong to start with

    Code
    With ActiveSheet.TextBoxes.Visible = True 
                End With


    Using a phone so no suggestions at the moment but a sample workbook would be ideal


    [sw]*[/sw]

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!