VB 填充EXCEL表格时出问题,求大神帮忙解决
Sub评定等级()DimiAsIntegerDimjAsIntegerDimxAsStringDimyAsStringDimzAsStringFori=0To11Forj...
Sub 评定等级()
Dim i As Integer
Dim j As Integer
Dim x As String
Dim y As String
Dim z As String
For i = 0 To 11
For j = 1 To 11
y = Str(i)
z = Str(j)
x = y & z
x = x.Insert(y.Length, ",") 这里提示y为无效限定符
Sheets(1).Cells(i * 11 + j, 1) = x
Next
Next
End Sub 展开
Dim i As Integer
Dim j As Integer
Dim x As String
Dim y As String
Dim z As String
For i = 0 To 11
For j = 1 To 11
y = Str(i)
z = Str(j)
x = y & z
x = x.Insert(y.Length, ",") 这里提示y为无效限定符
Sheets(1).Cells(i * 11 + j, 1) = x
Next
Next
End Sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询