- ©«¤l
- 396
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 425
- ÂI¦W
- 1
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2013-7-2
- ³Ì«áµn¿ý
- 2024-8-23
|
¦^´_ 4# 89691007
Dim i, lastRow As Integer
==> ©w¸q¡yi¡z¡B¡ylastrow¡z¬°¾ã¼Æ
lastRow = [A1].End(xlDown).Row '¨ú±oAÄæ³Ì¤U¤@¦æ
==> lastrow=¨ú±oAÄ檺³Ì«á¤@Ó¦³¼ÆȪº¦C¸¹
§A¦b¤u§@ªí¸Ì¡A«öctrl+¤W¡B¤U¡B¥ª¡B¥kÁä¥h°Ê¬Ý¬Ý¡A´N«Ü²M·¡©ú¾é¤F
end(xldown)=ctrl+¤U
end(xlup))=ctrl+¤W
end(xltoright))=ctrl+¥k
end(xltoleft))=ctrl+¥ª
¦ý¬O¦pªG§AªºaÄ檺¼ÆȦ³¤£³sÄòªºªÅ¥Õ®æªº¸Ü¡A«Øij§A§ï¥Î
[a65536].end(xlup).row¡A¤ñ¸û¤£·|µo¥Í§PÂ_¿ù»~¡C
For i = 2 To lastRow
==> for n·f°tnext¡A for i= 2 to lastrow(è¤~¤W±¦³pºâ¥Xlastrowªº¼ÆÈ)¡A
i´N·|±q2¤@ª½°õ¦æ¨ìlastrowªº¼ÆȬ°¤î¡A°²³]lastrow¬O50¦n¤F¡A
¨º»ò¥L´N·|À°§A¥h´ú If Cells(2, 3) > Cells(2, 4)
Cells(3, 3) > Cells(3, 4)
Cells(4, 3) > Cells(4, 4)
¡G
¡G
¡G
Cells(50, 3) > Cells(50, 4) |
|