- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-4-9 09:14 ½s¿è
¦^´_ 44# ÂŤÑÄR¦À
¤µ¤Ñ¨SÀç·~,½Ð°Ý´ú¸Õ¤è¦¡
¦A¸ÑÄÀ¤@¤U,µ{¦¡ªºÅÞ¿è
Àɮ׶}±Ò®É ©w¸q¤FSheets("RTD")©Ò¦³Á`¶qDee¤½¦¡ªºÀx¦s®æ- Private Sub Workbook_Open()
- With Sheets("RTD")
- '''
- .Names.Add xRng_Name, xRng ''¦WºÙ©w¸q:Sheets("RTD")©Ò¦³¦UªÑÁ`¶qDee¤½¦¡ªºÀx¦s®æ
- '''
½Æ»s¥N½X Sheets("RTD")¤u§@ªí¤W¥ô¦ó¦³¤½¦¡Àx¦s®æȦ³ÅÜ°Ê,±Ò°ÊSheets("RTD")ªºWorksheet_Calculate¨Æ¥ó- Private Sub Worksheet_Calculate()
- Dim Rng As Range, E As Variant
- On Error Resume Next ' Àɮ׶}±Ò®É DEE¶Ç¦^¿ù»~È
- Set Rng = UsedRange.Cells.SpecialCells(xlCellTypeFormulas, xlErrors)
- If Not Rng Is Nothing Then Exit Sub
- On Error GoTo 0 '¶}½L¤£¦A³B²zµ{¦¡½Xªº¿ù»~
- For Each E In Me.Names
- If E.Name Like "*TotalVolume*" Then '¦UªÑÁ`¶qªº¦WºÙ
- If Range(E.Name) > 0 Then 'Á`¶q>0
- With Cells(Rows.Count, Range(E.Name).Column).End(xlUp) ''Á`¶q¦WºÙ©Ò¦bªº³Ì©³¦C©¹¤W¨ì¦³¸ê®ÆªºÀx¦s®æ
- If .Row = 2 Or .Row > 2 And .Value <> Range(E.Name).Value Then '(¦UªÑÁ`¶q¦³ÅÜ°Ê)
- '******************************************
- '³Ì©³¦C©¹¤W¦³¸ê®ÆªºÀx¦s®æ<>'Á`¶qªºÈ
- .Offset(1).Cells(1, -2).Resize(, 4) = Range(E.Name).Cells(, -2).Resize(, 4).Value
- '******************************************
- End If
- End With
- End If
- End If
- Next
- End Sub
½Æ»s¥N½X |
|