ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó¼¶¼g¦¹µ{¦¡?

[µo°Ý] ¦p¦ó¼¶¼g¦¹µ{¦¡?

if [A2]="" then [E2]="£¾"
if [A3]="" then [E3]="£¾"

¥H¦¹Ãþ±À

¦pªGA4="" «h¸õÂ÷³oµ{¦¡
¥H¤W¬O¤ñ³ë~¦]¬°¸ê®Æ¬°¤£©w­È

Ãþ¦ü³o¼Ëªº·§©À¶Ü¡H
  1. Sub test()
  2. For i = 2 To 10
  3. If Sheet1.[a4] = "" Then Exit Sub
  4.      If Sheet1.Cells(i, 1) = "" Then
  5.      Sheet1.Cells(i, 5) = "V"
  6.      Else: Sheet1.Cells(i, 5) = ""
  7.      End If
  8. Next
  9. End Sub
½Æ»s¥N½X
¦^´_ 1# av8d

TOP

¦^´_ 2# owen06


½Ð°Ý¤j¤j~¦pªG¤£­nÅý¥L¥u§PÂ_¨ìA4~
§PÂ_¬ÝAÄ榳¦h¤Ö¸ê®Æ´N¨ì¦h¤Ö~¸Ó¦p¦ó§ï©O~ÁÂÁÂ

TOP

  1. Sub test()
  2. Dim LR As Long
  3. LR = Sheet1.[a65536].End(3).Row
  4. For i = 2 To LR
  5.      If Sheet1.Cells(i, 1) = "" Then
  6.      Sheet1.Cells(i, 5) = "V"
  7.      Else: Sheet1.Cells(i, 5) = ""
  8.      End If
  9. Next
  10. End Sub
½Æ»s¥N½X
¦^´_ 3# av8d

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2014-4-19 13:11 ½s¿è

¦^´_ 4# owen06


     ÁÂÁ¤j¤jªºÀ°§U~«D±`¦n¥Î~

·Q¸ß°ÝÃö©ó
²Ä¤@­Ó©M²Ä¤G­Ó­þ­Ó¤ñ¸û¸`¬Ù®Ä¯à¡H

¤@¯ë§P©w·|¬O²Ä¤@­Ó?

¦]¬°²Ä¤G­Ó¦pªG¸ê®Æ´Nºâ¥u¦³2µ§~¦ý¬O¥L¨ÌµM·|¶]65536¦¸¡H¹ï¶Ü¡H

--------------------------------------------------------------------------
³Ì«á°½°½¸ß°Ý¤@¤UEnd(3)©MEndªº®t²§¡H

TOP

¥»©«³Ì«á¥Ñ owen06 ©ó 2014-4-19 16:07 ½s¿è

¦^´_ 5# av8d


     ·íµM¬O²Ä¤G­Ó¤èªk³Ì¦n§r¡A
     [a65536].end(3)=[a65536].end(xlup)
     µ¥©ó¬O§A¦ba65536®É«öµÛctrl¥[¤è¦VÁä¤W¡A
     §A¦Û¤v¥h«ö¬Ý¬Ý¡A´Nª¾¹Dµ²ªG¤F¡C
     ¥L·|¦Û°Ê§PÂ_¥X¥X¸ê®Æ¹ê»Úªº½d³ò¨ì­þ¡A
     ´N¤£¥Î¦b¨ºÃä§ï¨Ó§ï¥h³]©w­È¤F¡C
   
      .end(1)=.end(xltoleft)=Áä½Lctrl+¥ª
      .end(2)=.end(xltoright)=Áä½Lctrl+¥k
      .end(3)=.end(xlup)=Áä½Lctrl+¤W
      .end(4)=.end(xldown)=Áä½Lctrl+¤U

TOP

¦^´_ 5# av8d
VBA F1 ªº»¡©ú
  1. End ³¯­z¦¡
  2. µ²§ô¤@­Óµ{§Ç©Î°Ï¶ô¡C
  3. »yªk
  4. End

  5. End Function

  6. End If

  7. End Property

  8. End Select

  9. End Sub

  10. End Type

  11. End With

  12. End ³¯­z¦¡ªº»yªk¦³¥H¤U´XºØ§Î¦¡¡G

  13. ³¯­z¦¡ ´y­z
  14. End °±¤î°õ¦æ¡A¥i¥H©ñ¦bµ{§Ç¤¤ªº¥ô¦ó¦ì¸m¡A¥¦¥i¥HÃö³¬¥H Open ³¯­z¦¡©Ò¶}±ÒªºÀɮסA¥B¥i¥H²M°£ÅܼơC
  15. End Function µ²§ô¤@­Ó Function ³¯­z¦¡
  16. End If µ²§ô¤@­Ó If¡KThen¡KElse ³¯­z¦¡
  17. End Property µ²§ô¤@­Ó Property Let¡BProperty Get¡A©Î Property Set µ{§Ç
  18. End Select µ²§ô¤@­Ó Select Case ³¯­z¦¡
  19. End Sub µ²§ô¤@­Ó Sub ³¯­z¦¡
  20. End Type µ²§ô¤@­Ó¨Ï¥ÎªÌ¦Û­q«¬ºA©w¸q (Type ³¯­z¦¡ )¡C
  21. End With µ²§ô¤@­Ó With ³¯­z¦¡
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 6# owen06


    «D±`·PÁ¨â¦ì¤j¤jªº¥Î¤ß~

GBKª©¥Dªº¤ñ¸û²`¶ø~§Ú·|§V¤O¾Ç²ßªº~

TOP

­ì¨ÓEnd(xlup)¤]¦³³o¼Ëªºªí¹F¤è¦¡!!²Ä¤@¦¸¨£ÃѨì¡A·PÁ owen06 ¤j¤j¤À¨É¡C
ªì·sªÌ~«ü±ÐÅo~

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD