Please enable JavaScript.
Coggle requires JavaScript to display documents.
VBA (變量 (Dim i AS Byte (interger %
long &
single !
double #
…
VBA
-
運算
if
-
while
-
i=2
while cells(i,1) <> ""
s = s + cells (i, 3)
i=i+1
wend
cells(2,6) = s
FOR i = 1 to 4 step
Next
i = 2
while cells(i,3) <> " "
for j = 3 to 5
if cells(i , j) >= 90 then xxxxxxx
end if
next
-
工作表
worksheets 工作表集合
worksheets('sheet2')
Dim sht As worksheet
set sht = worksheets(3)
sht.cells(2,3) = 3
y= cells(2,3)
y 被賦值 c2 中內容
set y = cells(2,3)
y 被賦值 c2 中單元格的range對象
For i = 1 To Worksheets.Count
Set sht = Worksheets(i)
sht.cells(2,3) = 3
next
-
if worksheets(sht.cells(i,3).value) is Nothing
如果沒有這張表
工作簿
-
Excel 程序
application
application.workbooks('test.xlsx').worksheets('sheet2').cells(1,2)=3
-
-
-
-