新手上路,各位高手帮忙看看这个代码,怎样把Excel数据导入数组中
Private Sub c1_Click()yt = 50
Rem 源数据输入
Open App.Path + "\cd.txt" For Input As #1
ub = -1
Do Until EOF(1)
ub = ub + 1
Input #1, ye(ub), t(ub), q0(ub), qw(ub), np(ub), wp(ub), lp(ub)
lp(ub) = Log(lp(ub)) / Log(10)
Loop
Close #1