- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 1# bobomi
À³¸Ó¬On¥Î :
Columns( 3 ).delete
ªº®æ¦¡¤~¬O¥¿½Tªº.
(§Ú²q¥¦¬Oª½±µ®³ range ªº®æ¦¡¨Ó®M¥Î¤~µo¥Í³o¼Ëªº¯QÀs, Columns »P Rows ¨S¦³²Ä¤GӰѼÆ, ¦h¦C<Äæ>ªºªí¥Ü¤è¦¡¬O ("1:5") , ¬A¸¹¤¤¶¡n¥Î¦r¦êªº§Î¦¡¤~·|±µ¨ü)
===== ¥H¤U¬O Office 2000 ªº»¡©ú =====
°Ñ·Ó¦C©MÄæ
½Ð°Ñ¾\¯S©w¥i¥Î Rows ÄÝ©Ê©Î Columns ÄݩʳB²z¾ã¦C©Î¾ãÄæ¡C³o¨âÓÄݩʶǦ^¥NªíÀx¦s®æ½d³òªº Range ª«¥ó¡C¥H¤U½d¨Ò¤¤¡A¥Î Rows(1) ¶Ç¦^¤u§@ªí Sheet1 ¤Wªº²Ä¤@¦C¡AµM«á±N Font ª«¥óªº Bold Äݩʳ]©w¬° True¡C
Sub RowBold()
Worksheets("Sheet1").Rows(1).Font.Bold = True
End Sub
¤U¦Cªí®æªí¥Ü¨Ï¥Î Rows ÄÝ©Ê©M Columns Äݩʪº¤@¨Ç¦C©MÄæ°Ñ·Ó¡C
°Ñ·Ó ·N¸q
Rows(1) ²Ä¤@¦C
Rows ¤u§@ªí¤W©Ò¦³ªº¦C
Columns(1) ²Ä¤@Äæ
Columns("A") ²Ä¤@Äæ
Columns ¤u§@ªí¤W©Ò¦³ªºÄæ
¦pªGn¦P®É³B²zY¤z¦C©ÎÄæ¡A¥i¥ý«Ø¥ß¤@Óª«¥óÅܼơAµM«á¥Î Union ¤èªk§â¹ï Rows ÄÝ©Ê©Î Columns Äݩʪº¦hÓ©I¥s²Õ¦X°_¨Ó¡C¤U¦C½d¨Ò±N¨Ï¥Î¤¤¬¡¶Ã¯¤¤²Ä¤@±i¤u§@ªí¤Wªº²Ä¤@¦C¡B²Ä¤T¦C©M²Ä¤¦Cªº¦r«¬³]©w¬°²ÊÅé¡C
Sub SeveralRows()
Worksheets("Sheet1").Activate
Dim myUnion As Range
Set myUnion = Union(Rows(1), Rows(3), Rows(5))
myUnion.Font.Bold = True
End Sub
===== ¥H¤W¬O Office 2000 ªº»¡©ú =====
¨ä¹êÃþ¦üªº¯QÀsÁÙ¦³«Ü¦h,
¨Ò¦p¥¦¹ï Dictionary ¥ÎªkªºÁ|¨Ò:
¤U±ªºµ{¦¡½XÁ|¨Ò»¡©ú¤F¦p¦ó«Ø¥ß¤@Ó Dictionary ª«¥ó¡G
Dim d '«Ø¥ß¤@ÓÅܼÆ
Set d = CreateObject(Scripting.Dictionary)
d.Add "a", "Athens" '¥[¤J¤@¨ÇÃöÁä¦r©M¶µ¥Ø
d.Add "b", "Belgrade"d.Add "c", "Cairo"
...
¨ì¤F Office 2003 ÁÙ¬O¤@¼Ë¿ù»~ªºÁ|¨Ò(§ó«á±ªºª©¥»¦³¨S¦³×¥¿§Ú´N¤£²M·¡¤F).
è¶}©lÁÙ¬O·s¤â¾Ç Excel VBA ®É,
¨º¦æ Set d = CreateObject(Scripting.Dictionary)
À³¸Ón¼g¦¨ Set d = CreateObject("Scripting.Dictionary")
´N¥u¬O¤Ö¤F¨âÓÂù¤Þ¸¹,
¨¬¨¬®ö¶O¤F§Ú¤@Ó¤p®Éªº®É¶¡§ä°ÝÃDÂI. |
|