Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vba 已启用的文本框在更改或ddbclick事件中不响应_Vba_Excel - Fatal编程技术网

Vba 已启用的文本框在更改或ddbclick事件中不响应

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

我找不到一种治疗方法,只能将16个文本框全部剪切并替换掉。这解决了问题,但没有找到退出工作的理由。

在代码的每行前面添加4个
空白
,谢谢。我尝试了编辑,建议两个空格,但没有任何效果。这是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