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

[µo°Ý] ¸ê®Æ¤ñ¹ï«á¡A¨Ã¨Ì·Ó¤ë¥÷

[µo°Ý] ¸ê®Æ¤ñ¹ï«á¡A¨Ã¨Ì·Ó¤ë¥÷

½Ð°Ý«e½ú­Ì¡G

¤p§Ì¥Ø«e¨Ï¥Î¤½¦¡¼g¥X¡A¦ý¦b¦P®É¨Ï¥ÎEXCEL ®É¡Aªþ¥óÀÉ®×·|¨ü¨ì¨ä¥LÀÉ®×¼vÅT¡A·|­«·s§ó·s§@·~¡]¤£·Q°±¥Î¤½¦¡¦Û°Ê§ó·s¡^
·Q½Ð±Ð¬O§_¥i¥H¨Ï¥ÎVBA ¨Ó¸Ñ¨M¡C

µ²ªG¡G²§°Ê²Î­p
¨Ó·½¡G®w¦s²§°Ê




ª«®Æ±±¨îªí-3.rar (347.86 KB)

¦^´_ 1# red
¦P®É¨Ï¥ÎEXCEL ®É¡Aªþ¥óÀÉ®×·|¨ü¨ì¨ä¥LÀÉ®×¼vÅT

¤ÓÅ¢²Î¤F¡A«ç¼Ë¾Þ§@®É¦p¦ó³Q¼vÅT¡AµM«á§Æ±æ¯à°µ¨ì«ç¼Ë¡C

¤j®a³£¤£¬O­ì¾Þ§@ªÌ¡A¤£»¡²M·¡¨Ç¬O«ÜÃø²z¸Ñ§A¹J¨ìªº±¡§Îªº¡A
§ó§O´£¯à¤£¯à¸Ñ¨M¤F¡C¡C¡C
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 1# red
§Aªº·N«ä¬O¶}Àɫᤣ­n¦]¬°¨ä¥LÀɮפº®eµo¥ÍÅܧó¶i¦Ó²§°Ê¨ì¥»Àɮתº¤º®e¶Ü?
³Ì²³æªº¤èªk¬O¶}ÀÉ«á¨t²Î¸ß°Ý¬O§_§ó·s»·ºÝ°Ñ·Ó®É, ¿ï¤£­n§ó·s,
­Y¤§«á¤S·Q§ó·s®É,
ÃöÀɦA¶}§Y¥i.

TOP

¦^´_  red
§Aªº·N«ä¬O¶}Àɫᤣ­n¦]¬°¨ä¥LÀɮפº®eµo¥ÍÅܧó¶i¦Ó²§°Ê¨ì¥»Àɮתº¤º®e¶Ü?
³Ì²³æªº¤èªk¬O¶}ÀÉ ...
luhpro µoªí©ó 2014-11-6 22:53


¦p¦Pluhpro «e½ú ©Ò»¡¡A¦pªG¦P®É¶}±Ò¨ä¥Lexcel ¡A¦b¥t¤@Àɮק@·~®É¡A¥u­n¿é¤J´N¶i¦Ó·|¼vÅTªþ¥óÀɮסA¤½¦¡´N·|­«·s§ó·s¡C
¦b¸Õ¸Õluhpro«e½ú ¤è¦¡¬Ý¬Ý
·PÁ¨ä¥L«e½ú¦^ÂÐ

TOP

¹ï¤£°_¥H¤W«e½ú¡A¥Ø«e´y­z¤£¬O«Ü²M·¡¡A
·í¦P®É¶}¥ß2­Óexcel Àɮק@·~¡A¦ý¤£¬O¦³¬ÛÃö©Ê¡A°²³]AÀɬ°ª«®Æ±±¨îªí3¡ABÀÉ«h¬°¨ä¥LÀɮסA¨âÀÉ®×µL¥ô¦ó¤½¦¡³sµ²°Ñ·Ó¡C
¥Ø«e¹J¨ì°ÝÃD¬O¦bBÀɧ@·~®É¥u­nÀx¦s®æ¦³²§°Ê¡A«hAÀɤ§SHEET¡]²§°Ê²Î­p¡^´N·|¶}©l¶i¦æ¤½¦¡ªº¹B¦æ¤Î§ó·s

¥»¤H¥Ø«e·Q­n§Q¥ÎVBA ¨ú¥NAÀÉ-²§°Ê²Î­p¥Ø«e¹ÏÀɬõ®Ø³B¨Ï¥Î¤½¦¡³¡¤À¡A¤~·Q½Ð°Ý«e½ú¡A¬O§_¥i¥H¨ó§U§ï¦¨VBA ¤è¦¡¶i¦æ¡C
¬õ®Ø³Bªº¨Ó·½¬°ª«®Æ±±¨îªí--®w¦s²§°Ê
¥H¤W¤£ª¾¦U¦ì«e½ú¬O§_¥i¥H¤F¸Ñ¡A¤p§Ì¥Ø«eª¬ªp¡A¥»¤H¹ï©óVBA¤W¤£¼ô±x¡A©Ò¥H·Q½Ð¦U¦ì«e½ú¨ó§U

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2014-11-11 22:47 ½s¿è
¹ï¤£°_¥H¤W«e½ú¡A¥Ø«e´y­z¤£¬O«Ü²M·¡¡A
·í¦P®É¶}¥ß2­Óexcel Àɮק@·~¡A¦ý¤£¬O¦³¬ÛÃö©Ê¡A°²³]AÀɬ°ª«®Æ±±¨î ...
red µoªí©ó 2014-11-10 09:23

§Ú¤j·§ª¾¹D§Aªº·N«ä¤F,
¤]´N¬O¬Y­ÓExcelÀɮתºÀx¦s®æµo¥Í²§°Ê,
¦ý«oIJµo¤F¥t¤@­ÓExcelÀɮפ¤ªºWorksheet_Changeµ{§Ç,
¾É­P¸Ó¬qµ{¦¡«D¹w´Áªº³Q°õ¦æ,
¥H­P¥X²{«D­ì³]­p¥»·Nªºµ²ªG.

³o¥i¥H¥Î¤@­Ó IF §PÂ_°Ï¶ô¥]¦í,
¥u­n¤£¬O¦Û¤v¥»¨­²§°Ê¦ÓIJµoªº´N¤£°õ¦æ¨Ó¸Ñ¨M :

1. °²³]·í "²§°Ê²Î­p" ¤u§@ªíªºÀx¦s®æµo¥Í²§°Ê®É¤~­n°õ¦æ ->
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.   If Target.Parent.Name = "²§°Ê²Î­p" Then
  3.     ...
  4.   End If
  5. End Sub
½Æ»s¥N½X
2. °²³]¶··í "Book1.xls" Àɮתº "²§°Ê²Î­p" ¤u§@ªíªºÀx¦s®æµo¥Í²§°Ê®É¤~­n°õ¦æ ->
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.   If Target.Parent.Parent.Name = "Book1.xls" And Target.Parent.Name = "²§°Ê²Î­p" Then
  3.     ...
  4.   End If
  5. End Sub
½Æ»s¥N½X

TOP

¦^´_ 6# luhpro

·PÁÂluhpro «e½ú¦A¦¸¦^ÂСA¤p§Ì¦b¸Õ¸Õ¬Ý
ÁÂÁÂ

TOP

¦^´_ 7# red
·j´Mºô¸ô¸ê®Æ¤Î¦U¦ì«e½ú±Ð¾Ç
¥[¤J¥H¤UVBA µ{¦¡«h§ïµ½­ì¥»°ÝÃD
Private Sub CommandButton1_Click()

Sheet2.Cells(1, 3) = Now()
Application.ScreenUpdating = False
Sheet2.Range("h4:o220").ClearContents
Call Module3.Macro1

    For i = 4 To Sheet1.Range("a65536").End(xlUp).Row
        For j = 8 To 14
            If Sheet1.Cells(i, 3) = Sheet2.Cells(3, j) Then
                For k = 4 To Sheet2.Range("a65536").End(xlUp).Row
                    If Sheet1.Cells(i, 1) = Sheet2.Cells(k, 1) And Sheet1.Cells(i, 8) = Sheet2.Cells(k, 6) Then
                       Sheet2.Cells(k, j) = Sheet2.Cells(k, j) + Sheet1.Cells(i, 9)
                    End If
                Next
            End If
        Next
    Next

    For i = 4 To Sheet2.Range("a65536").End(xlUp).Row
        For j = 8 To 13
            Sheet2.Cells(i, 15) = Sheet2.Cells(i, 15) + Sheet2.Cells(i, j)
        Next
            Sheet2.Cells(i, 15) = Sheet2.Cells(i, 15) / 6
    Next
Sheet2.Cells(1, 4) = Now()

End Sub

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD