Vba 已启用的文本框在更改或ddbclick事件中不响应
我找不到一种治疗方法,只能将16个文本框全部剪切并替换掉。这解决了问题,但没有找到退出工作的理由。在代码的每行前面添加4个Vba 已启用的文本框在更改或ddbclick事件中不响应,vba,excel,Vba,Excel,我找不到一种治疗方法,只能将16个文本框全部剪切并替换掉。这解决了问题,但没有找到退出工作的理由。在代码的每行前面添加4个空白,谢谢。我尝试了编辑,建议两个空格,但没有任何效果。这是activeX控件还是窗体控件? Sub LMtgAmt_DblClick(ByVal Cancel As MSForms.ReturnBoolean) Dim ProgError Dim TxtBox As MSForms.TextBox Set TxtBox = LMtgAmt
空白,谢谢。我尝试了编辑,建议两个空格,但没有任何效果。这是activeX控件还是窗体控件?
Sub LMtgAmt_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim ProgError
Dim TxtBox As MSForms.TextBox
Set TxtBox = LMtgAmt
MsgBox "in click"
' first variable is the control - textbox
'the second variable is the topic:Mortgage =1, PSE = 2, Tacom Ut = 3...
'The third variable is 1 for Todd and 2 for Linell
ProgError = Processpayment(TxtBox, "1", "2")
Exit Sub
End Sub
Sub LMtgAmt_Change()
Dim ProgError
Dim TxtBox As MSForms.TextBox
Set TxtBox = LMtgAmt
MsgBox "in Change"
' first variable is the control - textbox
'the second variable is the topic:Mortgage =1, PSE = 2, Tacom Ut = 3...
'The third variable is 1 for Todd and 2 for Linell
ProgError = Processpayment(TxtBox, "1", "2")
End Sub