- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-4-5 20:08 ½s¿è
¦^´_ 6# c_c_lai
VBA µøµ¡¤¤ µ{¦¡½Xªº½d³ò¤º ·Æ¹«ÂI¿ï«á, «öF8 ³v¨B °õ¦æµ{¦¡¬Ý¬Ý.- Option Explicit
- Sub Ex_END()
- MsgBox Range("C5").End(1).Address
- MsgBox Range("C5").End(xlToLeft).Address
-
- MsgBox Range("C5").End(2).Address
- MsgBox Range("C5").End(xlToRight).Address
-
- MsgBox Range("C5").End(3).Address
- MsgBox Range("C5").End(xlUp).Address
-
- MsgBox Range("C5").End(4).Address
- MsgBox Range("C5").End(xlDown).Address
- End Sub
- Sub Ex()
- MsgBox Range("C5")(1).Address
- MsgBox Range("C5").Cells(1).Address
- MsgBox Range("C5").Cells(1, 1).Address
- MsgBox Range("C5").Cells(1, "A").Address
-
- MsgBox Range("C5")(2).Address
- MsgBox Range("C5").Cells(2).Address
- MsgBox Range("C5").Cells(2, 1).Address
- MsgBox Range("C5").Cells(2, "A").Address
-
- MsgBox Range("C5")(1, 3).Address
- MsgBox Range("C5")(1, "C").Address
- MsgBox Range("C5").Cells(1, 3).Address
- MsgBox Range("C5").Cells(1, "C").Address
- End Sub
½Æ»s¥N½X |
|