为什么我写VBA语言,加了一个命令按钮,怎么实现点击一次变量就会加1呢?
PrivateSubCommandButton1_Click()DimAAsStringDimCAsIntegerC=C+1A=编制输入窗口.TextBox1.Value...
Private Sub CommandButton1_Click()
Dim A As String
Dim C As Integer
C = C + 1
A = 编制输入窗口.TextBox1.Value
Sheet3.Range("N" & C).Value = A
TextBox1.Value = Clear
End Sub 展开
Dim A As String
Dim C As Integer
C = C + 1
A = 编制输入窗口.TextBox1.Value
Sheet3.Range("N" & C).Value = A
TextBox1.Value = Clear
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询