sub test()
dim a,b
for m = 1 to 3
for n = 2 to 3
a = m + n
b = b+a
cells(m,1)=b
print cells (m,1)
next n
next m
end sub
cells(1,1) = 1+2+3
cells (2,1) = 2+2+3 + cells(1,1) "實際不想要+cells(1,1)
cells (3,1) =3+2+3 + cells(2,1) "實際不想要+cells(2,1)
想要的是cells(1,1)=1+2+3,cells(2,1)=2+2+3,cells(3,1)=3+2+3,請問如何實作。
uj5u.com熱心網友回復:
資訊量不夠,回答不了。uj5u.com熱心網友回復:
for i = 1 to 3cell(im 1) = i + 2 + 3
next
uj5u.com熱心網友回復:
cell函式是什么,因此不知道顯示什么就你的程式,實際上在 陳述句 print cells (m,1) 的后面加上; 分號就可以了。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/7353.html
標籤:VB基礎類
上一篇:【VBA請教】目前已實作Excel超鏈接+自動篩選功能,但要怎么才能使其區分大小寫?
下一篇:VB
