vba编译提示用户定义类型未定义
'声明商品单价ConstPriceAsSingle=3'编写程序Sub统计业绩()DimshtAsWooksheetSetsht=Worksheets("Sheet1")...
'声明商品单价
Const Price As Single = 3
'编写程序
Sub 统计业绩()
Dim sht As Wooksheet
Set sht = Worksheets("Sheet1")
Dim I As Interger
I = 2
Do
sht.Cells(I, 4) = sht.Cells(I, 3) * Price
I = I + 1
Loop Until sht.Cells(I, 3) = ""
End Sub 展开
Const Price As Single = 3
'编写程序
Sub 统计业绩()
Dim sht As Wooksheet
Set sht = Worksheets("Sheet1")
Dim I As Interger
I = 2
Do
sht.Cells(I, 4) = sht.Cells(I, 3) * Price
I = I + 1
Loop Until sht.Cells(I, 3) = ""
End Sub 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询