- ©«¤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 ©ó 2014-4-28 20:26 ½s¿è
¦^´_ 1# t8899
¤u§@ªí¨ç¼Æ OFFSET(reference,rows,cols,height,width) (¤u§@ªí¤Wªº¨ç¼Æ¤½¦¡)
Reference ¬OÓ°Ñ·Ó¦ì§}¡A¥¦¬O±z¥Î¥Hpºâ¦ì²¾µ²ªGªº°_©l¦ì¸m¡CReference ¥²¶·°Ñ·Ó¨ì¬Û¾F¿ï¨ú½d³òªº¤@ÓÀx¦s®æ©Î½d³ò¡A§_«h OFFSET ¨ç¼Æ¶Ç¦^¿ù»~È #VALUE!¡C
Rows ¬O¥Î¥H«ü¥Ü¥ª¤W¨¤Àx¦s®æn««ª½ (©¹¤W©Î©¹¤U) ²¾°Êªº¦C¼Æ¡C¨Ò¦p¡Arows Ȭ° 5¡A·N«ü©Ò¶Ç¦^¤§°Ñ·Ó¦ì§}¤§¥ª¤W¨¤Àx¦s®æ¦ì§}¤ñ reference ¤Þ¼Æ§C¤¦C¡C¦¹¤Þ¼Æ¥i¥H¬O¥¿¼Æ (ªí¥Ü¦b°_©l°Ñ·Ó¦ì§}¤U¤è) ©Ît¼Æ (ªí¥Ü¦b°_©l°Ñ·Ó¦ì§}¤W¤è)¡C
Cols ¬O¥Î¥H«ü¥Ü¥ª¤W¨¤Àx¦s®æn¤ô¥ (©¹¥ª©Î©¹¥k) ²¾°ÊªºÄæ¼Æ¡C¨Ò¦p¡Acols Ȭ° 5¡A·N«ü©Ò¶Ç¦^¤§°Ñ·Ó¦ì§}¤§¥ª¤W¨¤Àx¦s®æ¦ì§}¦b reference ¤Þ¼Æ¥k¤èªº²Ä¤Äæ¤W¡C¦¹¤Þ¼Æ¥i¥H¬O¥¿¼Æ (ªí¥Ü¦b°_©l°Ñ·Ó¦ì§}¥k¤è) ©Ît¼Æ (ªí¥Ü¦b°_©l°Ñ·Ó¦ì§}¥ª¤è)¡C
Height ¬O³]©w¶Ç¦^ªº°Ñ·Ó¦ì§}À³¥]¬AªºÀx¦s®æ°ª«× (Àx¦s®æ½d³òªº¦C¼Æ) ªº¼ÆÈ¡C¦¹¤Þ¼Æ¥²¶·¬O¥¿¼Æ¡C
Width ¬O³]©w¶Ç¦^ªº°Ñ·Ó¦ì§}À³¥]¬AªºÀx¦s®æ¼e«× (Àx¦s®æ½d³òªºÄæ¼Æ) ªº¼ÆÈ¡C¦¹¤Þ¼Æ¥²¶·¬O¥¿¼Æ¡C
****************************************************************************
VBA Offset ÄÝ©Ê (VBA ¤Wªºµ{¦¡½X)
expression.Offset(RowOffset, ColumnOffset)
expression ¥²¿ï¡C¸Ó¹Bºâ¦¡¶Ç¦^ Range ª«¥ó¡C
RowOffset ¿ï¾Ü©Êªº Variant ¸ê®ÆÃþ«¬¡C¥Î¦C¼Æªí¥Üªº°Ï°ì¦ì²¾ (¥¿È¡Bt¼Æ©Î¹s (0))¡C¥¿Èªí¥Ü¦V¤U¦ì²¾¡AtȪí¥Ü¦V¤W¦ì²¾¡C¹w³]Ȭ° 0¡C
ColumnOffset ¿ï¾Ü©Êªº Variant ¸ê®ÆÃþ«¬¡C¥ÎÄæ¼Æªí¥Üªº°Ï°ì¦ì²¾ (¾ã¼Æ¡Bt¼Æ©Î 0 (¹s))¡C¥¿Èªí¥Ü¥k¦ì²¾¡AtȪí¥Ü¥ª¡C¹w³]Ȭ° 0¡C |
|