Hi i am new in VB6 trying to built a simple application : 1 userform with 15 combobox, 46 Textbox and 3 command button. (ComboBox1~15)Each combobox is populated with items, TextBox1~15 are user input, Textbox17~46 are automatically filled by excel application to be executed by command button, then if my form is completely filled up, another command button will be executed to update current autocad open document with block attributes.
My Problem: I got Runtime Error 13 Type mismatch when i clicked command button to update current/running autocad document with block attributes.
Error is located here:
Sub UpdateAttrib(TagNumber As Integer, BTextString As String)
If BTextString = "" Then
Tatts(TagNumber).TextString = ""
Else
Tatts(TagNumber).TextString = BTextString
End If
End Sub
Entire code is attached here
Thanks in advance
ABS