将文本框值放入变量
Put TextBox Value into Variable
我想在按下按钮后将 GUI 文本框中的值保存在变量中。
到目前为止我的代码:
Dim TestSpalte As Long
TestSpalte = TextBox1.Value
MsgBox "Test " & TestSpalte
谢谢!
替换:
Dim TestSpalte As Long
与:
Dim TestSpalte As String
从 UserForm
中获取价值
UserForm1.TextBox1.Text
从 WorkSheet
获取价值
Worksheets("MySheetName").TextBox1.Value
我想在按下按钮后将 GUI 文本框中的值保存在变量中。
到目前为止我的代码:
Dim TestSpalte As Long
TestSpalte = TextBox1.Value
MsgBox "Test " & TestSpalte
谢谢!
替换:
Dim TestSpalte As Long
与:
Dim TestSpalte As String
从 UserForm
UserForm1.TextBox1.Text
从 WorkSheet
Worksheets("MySheetName").TextBox1.Value