½Ð±Ð½Æ»s¨ì¤£¦Pªº¤u§@ªíµLªk°_§@¥Î ?¦p¦óקï?
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-24
|
OFFSET
¿ï¾Ü¬Y½d³ò¡A¦p¦ó¨D±ooffset ªºÈ?
¨Ò¦p A1:B2 §YA1 ²¾¨ì B2 «hµª®×¬° OFFSET(1,1)
Sub t()
Dim rng As Range
Set rng = Selection
???= rng.Address
End Sub |
|
|
|
|
|
|
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¦^´_ t8899
¬O³o¼Ë¶Ü?
GBKEE µoªí©ó 2014-8-24 10:19
¥¿½T¡AÁÂÁÂ! |
|
|
|
|
|
|
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-24
|
½Ð±Ð½Æ»s¨ì¤£¦Pªº¤u§@ªíµLªk°_§@¥Î ?¦p¦óקï?
Sub test() '½Ð¥Îmouse¥ý¿ï¾Ü½Æ»sªº½d³ò
Dim rng As Range, a, z, r, rr
Set rng = Selection
z = InputBox("¿é¤J¶}©l¦ì§}")
Set r = Range(z).Offset(rng.Rows.Count - 1, rng.Columns.Count - 1)
Set rr = Range(z)
ActiveSheet.Range(rr.Address, r.Address) = Selection.Formula
End Sub |
|
|
|
|
|
|
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¦^´_ t8899
Sub test() '½Ð¥Îmouse¥ý¿ï¾Ü½Æ»sªº½d³ò
Dim rng As Range, a, z, r, rr
Set rn ...
GBKEE µoªí©ó 2014-8-25 05:53
Set rng = Selection '³o¥²¬OActiveSheetªºSelection
³o¤@¥y¥i¥H§ó§ï¶Ü? ¦pªGµL¸Ñ¡A¦A¼W¥[¤@Óinbox ¿é¤J¿ï¾Üªº¤u§@ªí¥i¥H¶Ü?? |
|
|
|
|
|
|
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¥»©«³Ì«á¥Ñ t8899 ©ó 2014-8-25 06:43 ½s¿è
¦^´_ t8899
¦³Application, InputBox ¬°¤èªk,
¨S¦³Application, InputBox ¬°¨ç¼Æ,
GBKEE µoªí©ó 2014-8-25 06:23
¥i¥H, ¦ý¥u¯àÂлs¤@ÓÀx¦s®æ |
|
|
|
|
|
|
- ©«¤l
- 759
- ¥DÃD
- 249
- ºëµØ
- 0
- ¿n¤À
- 1021
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-11-24
|
¦^´_ t8899
¦³Application, InputBox ¬°¤èªk,
¨S¦³Application, InputBox ¬°¨ç¼Æ,
GBKEE µoªí©ó 2014-8-25 06:23
Àɮפ¤
Book1.rar (8.46 KB)
¥Ø¼Ð¤£¹ï
1.¿ï¾Üsheet1 c1-c3 ¥Ø¼Ð sheet2 h1 µ²ªG sheet1 c1¶K¨ì sheet2 h3 ¨ä¾lªÅ¥Õ
¥¿½T¥Ø¼ÐÀ³¬° sheet2 h1-h3 Offset(rng.Rows.Count - 1, rng.Columns.Count - 1)¥¢®Ä ?
2.¿ï¾Üsheet1 c1-c3 ¥Ø¼Ð sheet2 h1-h3 µ²ªG sheet1 c1¶K¨ì sheet2 h3-h5
¥¿½T¥Ø¼ÐÀ³¬° sheet2 h1-h3 |
|
|
|
|
|
|