Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要填写目录。
我想为此进行输入Userform,通过单击按钮将add new product值Textboxes插入到特定列
Userform
add new product
Textboxes
Private Sub CommandButton1_Click() Sheet3.Cells.Rows.Insert Sheet3.Cells(25, 27).Value = TextBox1.Value End Sub
这是你正在尝试的吗?
Private Sub CommandButton1_Click() With Sheet3 '~~> Insert row at the 25th row. .Rows(25).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove '~~> Add textbox value .Cells(25, 27).Value = TextBox1.Value End With End Sub