|
楼主 |
发表于 2018-7-9 12:02
|
显示全部楼层
Sub Macro1()
' Macro1
[b2] = Format("福州乌山西路店")
y = InputBox("请选择调配方式:1、按方抓药; 2、单独包装;3、打粉", , "1")
Select Case y
Case Is = 1
Sheet1.[c7] = "按方抓药"
Case Is = 2
Sheet1.[c7] = "打粉"
Case Is = 3
Sheet1.[c7] = "切片"
Case Else
Sheet1.[c7] = y
End Select
x = InputBox("备注信息!!!例:微信名“”等其他备注信息,请在下面对话框输入")
[b8] = x
Sheet1.[c5] = Format(Date, "yyyymmdd")
Sheet1.[c6] = Format(Time, "h:mm:ss")
Sheet1.PrintOut
If (Sheet1.[b4].Value + 1) Mod 10 = 4 Then
Sheet1.[b4] = Format(Sheet1.[b4].Value + 2, "0000")
Else
Sheet1.[b4] = Format(Sheet1.[b4].Value + 1, "0000")
End If
End Sub
我插入的方式是不是错了 |
|