0

hopefully I am asking the correct question. I have a userform that displays X number of text boxes when initialized. here is a snippet:

Dim MF As Object

Set MF = Me.Controls.Add("Forms.TextBox.1", "BoxNumber_" & i, True)
    With MF
        .Value = ""
    End With

??? msgbox Me.MF.BoxNumber_i.value

Once a user is finished filling out the userform it will eventually write the results to SQL. my question is.. how do I output the variable MF.BoxNumber_i.value once the user fills this out?

1 Answer 1

1

Found it, figured I would post the solution in case someone stumbles across this one day.

msgbox Me.Controls("BoxNumber" & i).value

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.