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

[µo°Ý] ½Ð±Ð¦p¦ó¥u§R°£Àx¦s®æ¤ºªº¼Æ­È ¦Ó¤£§R°£¤½¦¡

[µo°Ý] ½Ð±Ð¦p¦ó¥u§R°£Àx¦s®æ¤ºªº¼Æ­È ¦Ó¤£§R°£¤½¦¡

·Q½Ð±Ð¤@¤U
§Ú¦bºô¸ô¤W°Ñ¦Òªº²M°£«ü¥O¦p¤U
  1. Sub ²M°£()
  2. Beep
  3. If MsgBox("¡°½T©w­n²M°£¡e¸ê®Æ¹Ïªí°Ï¡fªº°O¿ý¶Ü¡H¡@", 4 + 32 + 256) = vbNo Then Exit Sub
  4. Call ¦@¥Î¨Ï¥Î
  5. Sht1.Rows("19:65536").ClearContents
  6. If ActiveSheet.Name = Sht1.Name Then ActiveWindow.ScrollRow = 1
  7. Beep
  8. End Sub
½Æ»s¥N½X
³o­Ó·|±N§ÚRow 19¥H¤Uªº¼Æ­È§t¤½¦¡¥þ³¡§R°£
¤£¹L§Ú¦b(K19,K319)¤Î(N19,N319)¤º¦³¼g¤J²³æªº¤½¦¡
¥i¥H­×§ï¦¨¥u§R°£¼Æ­È¤£§R°£¤½¦¡¶Ü?
½Ð°Ý¦p¦ó­×§ï

¦^´_ 1# vic

¤£¥i¯à¥u§R­È¦Ó¤£§R¤½¦¡ªº¡I¦]¬°¤½¦¡©Ò°Ñ·ÓªºÀx¦s®æ¦³­Èªº¸Ü¡A§Aªº¤½¦¡²¦³º·|Åã¥Ü­È¥X¨Ó¡C
©Ò¥H¤@¯ë¤£Åý¨ä­ÈÅã¥Ü¤j¦h¼Æ·|§Q ¥ÎIF¨ç¼Æ¨ÓÀ°§U§PÂ_¡A¨ÓÅý¤½¦¡Àx¦s®æÅã¥ÜªÅ¥Õ¡A
¨Ò¦p¡G
­ì¨ÓªºC1=A1+B1¥i¥H¼g¦¨
    C1=IF(OR(A1="",B1=""),"",A1+B1)'·íA1©MB1¬Ò¬OªÅ¥Õ®ÉC1=ªÅ¥Õ¡A§_«hC1=A1+B1
µM«á¦bVBA¤¤¥u§R°£A1©MB1¡A³o¼Ë´N¥i¥H¹F¨ìÃþ¦ü§A­nªº¼Ò¦¡¤F¡C

TOP

¬JµM¬O ²M°£¡e¸ê®Æ¹Ïªí°Ï¡fªº°O¿ý
¨º§â¹Ïªíªº°Ñ·Ó½d³ò§ï¨ì¨ä¥LªÅ¥Õ°Ï
¦p¦ó©O?

TOP

¦^´_ 1# vic
  1. Sub ²M°£()
  2.     Beep
  3.     If MsgBox("¡°½T©w­n²M°£¡e¸ê®Æ¹Ïªí°Ï¡fªº°O¿ý¶Ü¡H¡@", 4 + 32 + 256) = vbNo Then Exit Sub
  4.     Call ¦@¥Î¨Ï¥Î
  5.     With Sht1.Rows("19:65536")
  6.         On Error Resume Next     'µ{¦¡¤W¦³¿ù»~,Ä~Äò°õ¦æ¤U¤@¦æªºµ{¦¡µ{¦¡½X
  7.         'SpecialCells(¯S®íÀx¦s®æ),xlCellTypeConstants¡C¥]§t±`¼ÆªºÀx¦s®æ
  8.         '¨S¦³«ü©wªºSpecialCells,·|¦³µ{¦¡¤Wªº¿ù»~
  9.         .SpecialCells(xlCellTypeConstants) = ""
  10.         On Error GoTo 0    '¤£³B²zµ{¦¡¤Wªº¿ù»~
  11.     End With
  12.     If ActiveSheet.Name = Sht1.Name Then ActiveWindow.ScrollRow = 1
  13.     Beep
  14. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 4# GBKEE

¤Ó·PÁ¤F §Ú­ì¥»¤]¸Õ¹L¥Î(xlCellTypeConstants, 23)
¤£¹L¤]¬O¦pªGÀx¦s®æ¦³­Èªº®É­Ô°õ¦æ·|¦¨¥\,
²M°£«á¦A°õ¦æ´Nµo¥Í¿ù»~~·PÁ±z

¤]·PÁ¨ä¥L¤j¤j¼ö¤ßªº´£¨Ñ·N¨£

TOP

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD