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

[µo°Ý] ½Ð°ÝEXCEL«ç»ò¨ú±o¤u§@ªíªº¼Æ¶q»P¸ê®Æ¦æ¼Æ©O(¸ó¤u§@ªí)!?ÁÂÁÂ

¦^´_ 4# konkon3141
alt +F1¶i¤JVisual Basic , ¥ªÃä§ä¨ì¥Ø¿ý³o­Ó¤u§@ªíÂI¨â¤U


¦b¥kÃä°Ï°ì¶K¤W³o¬qcode:
  1. Private Sub Worksheet_Activate()
  2.     'Q1:
  3.     Range("C9") = Sheets.Count - 2
  4.    
  5.     'Q2:-
  6.     Range("C10") = "=COUNTA(" & Sheets(2).Name & ":" & Sheets(Sheets.Count - 1).Name & "!B:B)" & "-COUNTA(" & Sheets(2).Name & ":" & Sheets(Sheets.Count - 1).Name & "!B1:B8)"
  7.     Range("C12") = "=COUNTA(" & Sheets(2).Name & ":" & Sheets(Sheets.Count - 1).Name & "!J:J)" & "-COUNTA(" & Sheets(2).Name & ":" & Sheets(Sheets.Count - 1).Name & "!J1:J8)"
  8.     Range("C14") = "=COUNTA(" & Sheets(2).Name & ":" & Sheets(Sheets.Count - 1).Name & "!P:P)" & "-COUNTA(" & Sheets(2).Name & ":" & Sheets(Sheets.Count - 1).Name & "!P1:P8)"

  9. End Sub
½Æ»s¥N½X
¦h¸Õ¸Õ ¬Ý¯à¤£¯à²Å¦X§Aªº»Ý¨DÂP
Book1.zip (1.68 KB)

TOP

¥»©«³Ì«á¥Ñ konkon3141 ©ó 2012-10-28 09:06 ½s¿è
¦^´_  konkon3141
¥ý¨ìEXCEL¿ï¶µ¤Ä¿ï¶}µo¤H­û , ¶i¤JVisual Basic
¥ª¤è¿ï²Ä¤@­Ó¤u§@ªí , ½Æ»s¥H¤U¥N½X
stillfish00 µoªí©ó 2012-10-28 01:20


¥i¯à§Ú¸ÑÄÀ°ÝÃD¤ñ¸û®z
§Ú¶Ç­Ó½d¨ÒÀÉ®×
1.rar (2.6 KB)
EXCEL¦³µù¸Ñ


°ÝÃD1¬O²Ä1¤u§@ªí²Î­p¶q¤¤
¯à­pºân-2¤u§@ªí¦³´X­Ó(¥h±¼²Ä1¤u§@ªí¸ò³Ì«á¤u§@ªí)
Åã¥Ü"¼Æ¦r"¦A²Ä1­Ó¤u§@ªí


°ÝÃD2¬O²Ä1¤u§@ªí²Î­p¶q¤¤
Åã¥Ü¨ä«á­±¤u§@ªí¤¤(¤£³ø¬A³Ì«á¤u§@ªí)
¥Í²£ªí³æ
ºû­×ªí³æ
²§°Ê¬ö¿ýªí³æ

¦@¦³¦h¤Öµ§¸ê®Æ
»Ý­n¸ó¤u§@ªí´M§ä
B9~¥H¤U
J9~¥H¤U
P9~¥H¤U
¸ê®Æ¼Æ
¦]¬°§ÚÁÙ¨S¶ñ¤J©Ò¥H³£¥ý¥´0


½d³ò¦pªG§Úµ¹°÷¤jÀ³¸Ó´N¥i¥H·í¦¨µL­­½d³òÅo§a!?

¤j¤j§Aµ¹§ÚªºVisual Basic§Ú¤£ª¾«ç»ò¨Ï¥Î­C@@
2003¥u­n«öalt+f11´N¥i¥H¶i¤JVisual Basic¤F
«ô°U¤j¤j¤F~~

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2012-10-28 01:21 ½s¿è

¦^´_ 1# konkon3141
¥ý¨ìEXCEL¿ï¶µ¤Ä¿ï¶}µo¤H­û , ¶i¤JVisual Basic
¥ª¤è¿ï²Ä¤@­Ó¤u§@ªí , ½Æ»s¥H¤U¥N½X
  1. Private Sub Worksheet_Activate()
  2.     'Q1:¦C¥X¤u§@ªí²M³æ
  3.     Dim i
  4.     Range(Range("A1"), Range("A1").End(xlDown)).ClearContents   '¥ý²M°£
  5.     For i = 3 To Sheets.Count   '¤£§t«e¨â­Ó¤u§@ªí(¥Ø¿ý,«¬¿ý)
  6.         Range("A1").Offset(i - 3, 0) = Sheets(i).Name
  7.     Next
  8.    
  9.     'Q2:­pºâÁ`¼Æ
  10.     Range("B1") = "=COUNTA(" & Sheets(3).Name & ":" & Sheets(Sheets.Count).Name & "!B:B)" & "-COUNTA(" & Sheets(3).Name & ":" & Sheets(Sheets.Count).Name & "!B1:B8)"
  11. End Sub
½Æ»s¥N½X

TOP

¥i¥H¨Ï¥Î¥¨¶°°Ú!

TOP

        ÀR«ä¦Û¦b : «Ý¤H°h¤@¨B¡A·R¤H¼e¤@¤o¡A´N·|¬¡±o«Ü§Ö¼Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD