Sub 鉅亨歷史K_Test()
Dim sh As Worksheet
Dim oXmlhttp As Object, oHtmldoc As Object
Dim URL As String, E As Variant
Dim StartDate$, EndDate$, submitBTN$, ttt#, tt#
Dim a As Variant, Table As Object, Ar_Code()
Dim oDOC As Object, Req$
Dim Re%, Ce%, k%, n%, i%, dataLen%
Dim stockno$
Set sh = Sheets("試驗頁"): sh.Select
Function DateToUnixTime(dstring) As Long
DateToUnixTime = (DateValue(dstring) - #1/1/1970 8:00:00 AM#) * 86400
End Function
Function UnixTime2Date(UnixT) As Date
UnixTime2Date = Format(UnixT / 86400 + #1/1/1970 8:00:00 AM#, "yyyy/mm/dd")
End Function作者: Scott090 時間: 2020-4-12 17:52