【发布时间】:2019-03-11 23:29:03
【问题描述】:
在这里遇到一些代码,寻求帮助。我试图找出根据另一个文本框是否有值来更新文本框值的正确语法。
故障
- Textbox1 名称 = arisk_box
- Textbox2 名称 = adjust_box3
- Textbox3 名称 = rr_box
这是我目前所拥有的:
Private Sub arisk_box_Change()
If arisk_box.Text <> "" And adjust_box3.Text = "" Then
rr_box.Value = arisk_box.Value
ElseIf arisk_box.Text <> "" And adjust_box3.Text <> "" Then
rr_box.Value = adjust_box3.Value
End If
End Sub
*If arisk_box has a *VALUE* and adjust_box3 *DOES NOT* then rr_box = the value from arisk_box
Elseif arisk_box AND adjust_box3 both have a *VALUE* then rr_box = the value from adjust_box3
【问题讨论】:
标签: vba excel textbox is-empty