- ©«¤l
- 250
- ¥DÃD
- 59
- ºëµØ
- 0
- ¿n¤À
- 313
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¿Dªù
- µù¥U®É¶¡
- 2010-9-11
- ³Ì«áµn¿ý
- 2020-1-6
|
¥i§_¨ó§U²¤Æµ{¦¡
¦U°ª¤H, ¦n
¤p§Ì¿ý¨î¤F¤@Óµ{¦¡, ¨Ï¥Î¨S¦³°ÝÃD, ¦ýµ{¦¡»áªø, ¦Ó¨Ï¥Î®É¤¶±°{°Ê, ¦¹¿ý¨îµ{¦¡¥i¦³Â²¤ÆªÅ¶¡, ½Ð°ª¤H̨ó§U, ÁÂÁÂ!!
Sub §ó·s()
'
' ¸ê®Æ§ó·s ¥¨¶°
'
'
Windows("abcÜ®w¸ê®Æ.xlsm").Activate
Sheets("Á`¤½¥qÜ®w").Select
Range("J4").Select
ActiveCell.FormulaR1C1 = _
"=SUMIFS([´£¨ú³æ.xlsm]´£¨ú³æ!C7,[´£¨ú³æ.xlsm]´£¨ú³æ!C15,RC7,[´£¨ú³æ.xlsm]´£¨ú³æ!C3,RC2)+SUMIFS([´£¨ú³æ.xlsm]´£¨ú³æ!R3C7,[´£¨ú³æ.xlsm]´£¨ú³æ!R3C15,RC[-3],[´£¨ú³æ.xlsm]´£¨ú³æ!R3C3,RC[-8])+SUMIFS([´£¨ú³æ.xlsm]´£¨ú³æ!R3C7,[´£¨ú³æ.xlsm]´£¨ú³æ!R3C15,RC[-3],[´£¨ú³æ.xlsm]´£¨ú³æ!R3C3,RC[-8])"
Range("K4").Select
ActiveCell.FormulaR1C1 = _
"=SUMIFS([¤J³f³æ.xlsm]Sheet1!C8,[¤J³f³æ.xlsm]Sheet1!C13,RC7,[¤J³f³æ.xlsm]Sheet1!C3,RC2)+SUMIFS([¤J³f³æ.xlsm]Sheet1!R3C8,[¤J³f³æ.xlsm]Sheet1!R3C13,RC[-4],[¤J³f³æ.xlsm]Sheet1!R3C3,RC[-9])"
Range("L4").Select
ActiveCell.FormulaR1C1 = "=RC[-3]-RC[-2]+RC[-1]"
ActiveWorkbook.Save
Range("J4:L4").Select
Selection.AutoFill Destination:=Range("J4:L22"), Type:=xlFillDefault
Range("J4:L22").Select
Range("L22").Select
Sheets("¤À¤½¥qÜ®w").Select
Range("J4").Select
ActiveCell.FormulaR1C1 = _
"=SUMIFS([´£¨ú³æ.xlsm]´£¨ú³æ!C7,[´£¨ú³æ.xlsm]´£¨ú³æ!C15,RC7,[´£¨ú³æ.xlsm]´£¨ú³æ!C3,RC2)+SUMIFS([´£¨ú³æ.xlsm]´£¨ú³æ!R3C7,[´£¨ú³æ.xlsm]´£¨ú³æ!R3C15,RC[-3],[´£¨ú³æ.xlsm]´£¨ú³æ!R3C3,RC[-8])"
Range("K4").Select
ActiveCell.FormulaR1C1 = _
"=SUMIFS([¤J³f³æ.xlsm]Sheet1!C8,[¤J³f³æ.xlsm]Sheet1!C13,RC7,[¤J³f³æ.xlsm]Sheet1!C3,RC2)+SUMIFS([¤J³f³æ.xlsm]Sheet1!R3C8,[¤J³f³æ.xlsm]Sheet1!R3C13,RC[-4],[¤J³f³æ.xlsm]Sheet1!R3C3,RC[-9])"
Range("L4").Select
ActiveCell.FormulaR1C1 = "=RC[-3]-RC[-2]+RC[-1]"
ActiveWorkbook.Save
Range("J4:L4").Select
Selection.AutoFill Destination:=Range("J4:L22"), Type:=xlFillDefault
Range("J4:L22").Select
Range("L22").Select
Sheets("Á`¤½¥qÜ®w").Select
Range("J4:L22").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("L4").Select
Application.CutCopyMode = False
Sheets("¤À¤½¥qÜ®w").Select
Range("J4:L22").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("L4").Select
Application.CutCopyMode = False
ActiveWindow.ScrollRow = 5
ActiveWindow.ScrollRow = 4
Windows("´£¨ú³æ.xlsm").Activate
Range("A2").Select
End Sub |
|