Pass UserForm textbox value to cell

后端 未结 1 385
离开以前
离开以前 2020-12-22 09:05

Community, I\'m moderately new to excel. I have a textbox called Box_One. This has been set up on my userform. All I want to do is have a cell value constantly equal what

1条回答
  •  北海茫月
    2020-12-22 09:33

    how about using the Change event of your text box to run the code you want? Something like

    Private Sub TextBox1_Change()
        Range("BU1").value = TextBox1.value ' specify the destination sheet and cell here
    End Sub
    

    I tested this real quick and it worked.

    0 讨论(0)
提交回复
热议问题