- ©«¤l
- 463
- ¥DÃD
- 116
- ºëµØ
- 0
- ¿n¤À
- 580
- ÂI¦W
- 0
- §@·~¨t²Î
- Vista
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-4
- ³Ì«áµn¿ý
- 2017-11-13
|
¦^´_ 8# GBKEE
«e½ú!«D±`ÁÂÁ«ü¾É...
¨}®v!ÁÂÁÂ!ì¨Ó¦p¦¹!¬p¶Õ°Õ!¤S¨Ó¤@ÃD
·Ó§Aªº«ü¾Éµe¸¬ÄªÁÙ¬Oµe¤£¥X¨Ó
µn¤Jµ{¦¡¹ê¦b¨S¿ìªk
¼g¤Jµ{¦¡«j±j¥i¥H°õ¦æ
°õ¦æµ²ªG¦p°Êµe©Ò¥Ü
½Ð¦A«ü¾É¯uªº·P®¦ÁÂÁ¦A¤T!!
Sub µn¤J()
With Sheets("¾Ç²ß")
ag:
ZZ = Application.InputBox("½Ð¦bBÄ椤¿ï¨ú¸ê®Æ", "¸ê®Æµn¤J", Type:=2)
If ZZ = "" Then Selection = "": End
If ZZ = False Then Selection = "": End
.Range("N" & Rows.Count).End(xlUp)(2, 1).Select
ActiveCell = ZZ: ActiveCell.Offset(0, 1) = [C5]
' ¦pªG¿ï¨ú¨Ã«DBÄæ¸ê®Æ Then MsgBox "¿ï¨úªº¸ê®Æ¨Ã«DBÄæ©Ò¦³¡I¡I½Ð«·s¿ï¨ú": GoTo ag
ag1:
ZZ = Application.InputBox("½Ð¦bBÄ椤¿ï¨ú¸ê®Æ", "¸ê®Æµn¤J", Type:=1)
If ZZ = False Then ¼g¤J: End
.Range("N" & Rows.Count).End(xlUp)(2, 1).Select
ActiveCell = ZZ: ActiveCell.Offset(0, 1) = [C7]
' ¦pªG¿ï¨ú¨Ã«DBÄæ¸ê®Æ Then MsgBox "¿ï¨úªº¸ê®Æ¨Ã«DBÄæ©Ò¦³¡I¡I½Ð«·s¿ï¨ú": GoTo ag1
GoTo ag1
End With
End Sub
Sub ¼g¤J()
Dim Rng As Range
ag:
With Sheets("¾Ç²ß")
Set Rng = Sheets("¾Ç²ß").Range("U" & Rows.Count).End(xlUp)(2, 1)
ZZ = Application.InputBox("½Ð¿é¤J¼Æ¦r", "¼Æ¦r", Type:=1)
If ZZ <= 0 Then GoTo ag
With Rng.Cells(1, -4)
.Value = ZZ
.NumberFormatLocal = "#,##0_ ;[¬õ¦â]-#,##0 "
.Font.ColorIndex = 10
End With
End With
With Sheets("¾Ç²ß")
Set Rng = Sheets("¾Ç²ß").Range("N" & Rows.Count).End(xlUp)(1, 1)
With Rng.Cells(1, 1)
For Each R In Array(8)
With .Cells(1, R)
.FormulaR1C1 = Cells(3, .Column).FormulaR1C1
If R = 8 Then
.Font.ColorIndex = 7
.NumberFormatLocal = "0.00%"
End If
End With
Next
End With
Set Rng = Sheets("¾Ç²ß").Range("N" & Rows.Count).End(xlUp)(2, 1)
With Rng.Cells(1, 1)
For Each e In Array(1, 2, 3, 4, 5, 6, 8)
With .Cells(1, e)
.FormulaR1C1 = Cells(4, .Column).FormulaR1C1
If e = 1 Then
.Font.ColorIndex = 1
ElseIf e = 3 Then
.Value = Date
.NumberFormat = "e/m/d"
.Font.ColorIndex = 5
ElseIf e = 8 Then
.Value = Date
.NumberFormatLocal = "#,##0_ ;[¬õ¦â]-#,##0 "
End If
End With
Next
End With
With Sheets("¾Ç²ß")
Set Rng = Sheets("¾Ç²ß").Range("N" & Rows.Count).End(xlUp)(1, 1)
ZZ = Application.InputBox("½Ð¿é¤J¼Æ¾Ú", "¼Æ¾Ú", Type:=1)
If ZZ <= 0 Then Exit Sub
With Rng.Cells(1, 7)
.Value = ZZ
End With
End With
.Columns("N:U").EntireColumn.AutoFit
End With
End Sub |
-
-
Leov68.gif
(502.14 KB)
-
-
LeoV68.rar
(14.12 KB)
|