CBC*_*_NS 0 excel vba textbox userform
社区,我对精益求精不太熟悉。我有一个名为 Box_One 的文本框。这已在我的用户表单上设置。我想要做的就是让单元格值始终等于文本框中的任何值。
我尝试了以下,但不太确定如何正确实施
Home.Range("A2").Value = Box_One.Value
Run Code Online (Sandbox Code Playgroud)
如何使用文本框的 Change 事件来运行您想要的代码?就像是
Private Sub TextBox1_Change()
Range("BU1").value = TextBox1.value ' specify the destination sheet and cell here
End Sub
Run Code Online (Sandbox Code Playgroud)
我很快就测试了这个,它奏效了。