R
Robin
Hi folks,
Part A) I was trying out certain application in Excel VBA where i wanted
to create textbox in a form run time depending on the user input number.
Part B) Once i had the textbox created i wanted to later add the
information user entered in the textbox to a array for string datatype.
Well some how i could get part A, but i unable to get Part B. I created
a control object OtxtCri for textbox and the textbox i created i named
the "txtCri"&i
Set OTxtCri = frmCriteriaDataEntry.Controls.Add("Forms.TextBox.1",
"txtCri" & i, True)
but now i am uable to code the software to get the user entered data
from these textbox to the array as i dont knwo how to identify the newly
created textbox in the form.
please i appreaciate a lot for the help on this.
thanks
robin
***** Posted via: http://www.ozgrid.com
Excel Templates, Training & Add-ins.
Free Excel Forum http://www.ozgrid.com/forum *****
Part A) I was trying out certain application in Excel VBA where i wanted
to create textbox in a form run time depending on the user input number.
Part B) Once i had the textbox created i wanted to later add the
information user entered in the textbox to a array for string datatype.
Well some how i could get part A, but i unable to get Part B. I created
a control object OtxtCri for textbox and the textbox i created i named
the "txtCri"&i
Set OTxtCri = frmCriteriaDataEntry.Controls.Add("Forms.TextBox.1",
"txtCri" & i, True)
but now i am uable to code the software to get the user entered data
from these textbox to the array as i dont knwo how to identify the newly
created textbox in the form.
please i appreaciate a lot for the help on this.
thanks
robin
***** Posted via: http://www.ozgrid.com
Excel Templates, Training & Add-ins.
Free Excel Forum http://www.ozgrid.com/forum *****