|
此文章由 lulucai 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 lulucai 所有!转贴必须注明作者、出处和本声明,并保持内容完整
yang~_~ 发表于 2013-7-23 15:17 
If IsEmpty(ThisWorkbook.Sheets("sheet1").cell(2, 2))
Then msgbox ("hi")
End If
我把B改成2了
其实我整个程序是这样的,一个loop加上一个if. 这次给我一个run time error, 438.doesn't support this property 这到底是什么错阿
For i = 1 To 10
If IsEmpty(ThisWorkbook.Sheets("sheet1").cell(2, i)) Then
ThisWorkbook.Sheets("sheet1").cell(2, i) = ThisWorkbook.Sheets("Jiffy Record").Range("C10")
ThisWorkbook.Sheets("sheet1").cell(3, i) = ThisWorkbook.Sheets("Jiffy Record").Range("C13")
ThisWorkbook.Sheets("sheet1").cell(6, i) = ThisWorkbook.Sheets("Jiffy Record").Range("C24")
ThisWorkbook.Sheets("sheet1").cell(7, i) = ThisWorkbook.Sheets("Jiffy Record").Range("C26")
Else: i = i + 1
End If
Next i |
|