0
我在與編碼一些問題,不知道從哪裏解決這個在返回的最早日期值:VBA,EXCEL:此數組字符串
我想BronzeDate返回中發現的最早日期我的陣列。
這是打印出來的例子:
Possible Bronze Date : 6/6/2011
Possible Bronze Date : 10/5/2011
Possible Bronze Date : 10/5/2011
Possible Bronze Date : 12/5/2011
Possible Bronze Date : 10/5/2011
Possible Bronze Date : 6/6/2011
Possible Bronze Date : 11/5/2011
Possible Bronze Date : 1/16/2012
Possible Bronze Date : 6/6/2011
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
Possible Bronze Date :
[BRONZE] 0
編碼:
Dim Bronze(1 To 100) As String
...
Dim c As Integer
c = 1
Do Until c = 20
Debug.Print " Possible Bronze Date : " & Bronze(c)
c = c + 1
Loop
' EXTRACT THE MIN VALUES
Dim BronzeDate As String
BronzeDate = Application.WorksheetFunction.Min(Bronze)
' PRINT OUT VALUE FOR EACH DATES
Debug.Print " [BRONZE] " & BronzeDate