Posts by jonny

    The below VBA code scores supplier, based on its response time, please your help to convert it to "IF" function format.


    Thank you

    Guys,
    Need to extract all the letters within the string , separated by comma.
    Now the code extracts first letters only.
    Please your help with modifying an user defined function:


    Input: HKJ234CBV546LL
    Output (is): HKJ
    Output (ought): HKJ,CBV,LL

    Guys, Need to extract all the letters within the string , separated by comma. Now the code extracts first letters only. Please your help with modifying an user defined function:

    Code
    Function ExtractLetter(str As String)     Dim TDCode As String     Dim result As String          On Error GoTo ErrHandler:     With CreateObject("vbscript.regexp")         .Pattern = "[A-Z]+"         ExtractLetter = .Execute(str)(2)     End With     Exit Function ErrHandler: End Function

    Input: HKJ234CBV546LL Output (is): HKJ Output (ought): HKJ,CBV,LL

    Thank you , Guys, "new userform's Initialize event" was as well the solution!


    I've created a new form:

    Code
    Private Sub UserForm_Initialize()
        Test.Show
    End Sub


    Where the event of the old form "Test" changed from Initialize to "Activate", this did the job.

    Hi there,
    I would appreciate some assistance to the following problem. The below code populates 10 checkboxes on the form. Clicking on one of them must show up the name of a clicked checkbox however this doesn't happen.
    Is there anything wrong with the code?
    Assistance would be greatly appreciated.
    Thanks


    Module


    Class Module

    Code
    Public WithEvents myCheckBox As MSForms.CheckBox
    
    
    Private Sub myCheckBox_Click()
        MsgBox myCheckBox.Caption
    End Sub

    OzMVP, thank you fo a detailed clarification. I understand it theoretically and have been trying to implement that last days however getting lost with the syntax.

    Sorry, I don't see any correlation to what I asked.
    I have a code with a dynamically added controls so I'm looking to create a kind of event handler with a right syntax.

    Need to Implement communication platform between two users (GUI):



    Task and Structure:


    1. There are "Parts"
    2. For each Part there are "Parameters"
    3. Parameter have properties as : Units, Description, Mandatory, Operator, Range


    User1 (ask):
    1. Selecting specific "Part"
    2. Then filling the values for all its "Parameters"
    4. Is "Mandatory" selected as "Yes" , then selecting "Operator" and "Range"
    5. Next step is to submit the form , submitted form with a part and filled parameters is transmitted to User2


    User2 (answer):
    1. offering up to three solutions:
    (a) for each Paramеters adding his parameter
    (b) free text - "Solution 1", "Solution 2", "Solution 3"
    (c) attaching PDF format file
    2. Next step is to submit the form will all the data back to User1 for review


    Admin: can add, delete, modify:
    (a) Parts
    (b) Parameters with the properties
    (c) Users