早教吧作业答案频道 -->其他-->
excelVBA请教各位大虾ubListOfNames()DimiCountAsIntegerDimsNames()AsStringDimiResponseAsIntegerDimiAsIntegeriResponse=vbYesDoWhileiResponse=vbYesiCount=iCount+1ReDimPreservesNames(iCount)AsStringsNames(iCount)=Input
题目详情
excel VBA 请教各位大虾
ub ListOfNames()
Dim iCount As Integer
Dim sNames() As String
Dim iResponse As Integer
Dim i As Integer
iResponse = vbYes
Do While iResponse = vbYes
iCount = iCount + 1
ReDim Preserve sNames(iCount) As String
sNames(iCount) = InputBox("Please enter a name:")
If sNames(iCount) = "" Then
iResponse = MsgBox("Do you wish to quit?", vbYesNo)
If iResponse = vbYes Then
Exit Do
End If
End If
Loop
For i = 1 To iCount - 1
msgbox("Name #" & i & "is" sNames (i))
Next
End Sub
为什么运行的时候msgbox("Name #" & i & "is" sNames (i))
提示我没有分隔符,有谁能帮我解答下么
ub ListOfNames()
Dim iCount As Integer
Dim sNames() As String
Dim iResponse As Integer
Dim i As Integer
iResponse = vbYes
Do While iResponse = vbYes
iCount = iCount + 1
ReDim Preserve sNames(iCount) As String
sNames(iCount) = InputBox("Please enter a name:")
If sNames(iCount) = "" Then
iResponse = MsgBox("Do you wish to quit?", vbYesNo)
If iResponse = vbYes Then
Exit Do
End If
End If
Loop
For i = 1 To iCount - 1
msgbox("Name #" & i & "is" sNames (i))
Next
End Sub
为什么运行的时候msgbox("Name #" & i & "is" sNames (i))
提示我没有分隔符,有谁能帮我解答下么
▼优质解答
答案和解析
参考答案:人之所以能,是相信能.
看了excelVBA请教各位大虾u...的网友还看了以下:
Ⅰ.在t℃时,某NaOH稀溶液中,c(H+)=10-amol/L,c(OH-)=10-bmol/L 2020-04-12 …
取物质的量浓度为11.8mol/L.的盐酸与2mol/L.的氢氧化钠溶液100ml混合,再将混合后 2020-05-16 …
(1)0·01mol/L的醋酸溶液与0·01mol/L的盐酸溶液稀释相同倍数后PH哪一个大?(2) 2020-05-17 …
现有反应mA(g)+nB(g)wC(g),测得在同一时间内A每分钟减少0.15mol·L-1,B每 2020-05-20 …
已知直线L垂直平面A,直线M属于平面B下面有几个命题正确的是?1.A平行B推出L垂直M2.A垂直B 2020-06-02 …
JIXUDAAN电解100ML含氢离子浓度为0.3MOL|L的下列溶液,当电路中通过0.04MOL 2020-07-09 …
定义点P(x0,y0)到直线l:Ax+By+C=0(A2+B2≠0)的有向距离为d=Ax0+By0 2020-07-09 …
过点M(1,2)的直线l(1)当l在两个坐标轴上截距的绝对值相等时,求直线l的方程;(2)l与坐标 2020-07-22 …
已知圆C:x2+y2-6x-8y+21=0,直线l过定点A(1,0).(1)求圆心C的坐标和圆的半径 2020-10-31 …
excelVBA请教各位大虾ubListOfNames()DimiCountAsIntegerDim 2020-11-01 …