- ©«¤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
|
¦^´_ 1# mdr0465
WorksheetFunction.Count ¤èªk
·|²Îp§t¦³¼Æ¦rªºÀx¦s®æ¡A¨Ã²Îp¤Þ¼Æ²M³æ¤ºªº¼ÆÈ¡C
- Format(Mid(Sheets(1).Cells(64, 1), 6, 11), "dd/nn/yy")
½Æ»s¥N½X
¬O¤å¦r
WorksheetFunction.CountA ¤èªk
·|²Îp¤£¬OªÅ¥ÕªºÀx¦s®æ¡A¥H¤Î¤Þ¼Æ²M³æ¤ºªº¼ÆÈ¡C
- Application.Goto ActiveWorkbook.Sheets(2).Cells(1, 2)
- 'On Error Resume Next
- cnt = WorksheetFunction.CountA(Range("b:b"))
½Æ»s¥N½X
§Aªºµ{¦¡¥iקאּCountA
¸Õ¸Õ¬Ý
- Sub test()
- Dim rng As Range
- Dim i, cnt, number As Integer
- Dim x As Range
- i = 73
- number = 0
- For i = i To 86
- Set x = ActiveWorkbook.Sheets(1).Cells(i, 1)
- If IsNumeric(x) = True And IsEmpty(x) = False Then
- number = number + 1
- End If
- Next
- cnt = WorksheetFunction.Count(ActiveWorkbook.Sheets(2).Range("a:a"))
- For i = 1 To number
- With ActiveWorkbook.Sheets(2)
- .Cells(cnt + i, 1) = i
- With .Cells(cnt + i, 2)
- .Cells = Format(Mid(ActiveWorkbook..Sheets(1).Cells(64, 1), 6, 11), "YYYY/MM/DD")
- .NumberFormatLocal = "mm/dd/yy;@"
- End With
- End With
- Next
- End Sub
½Æ»s¥N½X |
|