Dim j As Integer
Dim k As Integer
j = Cells.Find("Prize Money", lookat:=xlPart).Row '找 Prize Money 列位
k = Cells(j + 1, 256).End(xlToLeft).Column '在Prize Money下一列,回傳最後一欄作者: 518587 時間: 2014-11-17 16:17
On Error Resume Next '表示當一個執行階段錯誤產生時,程式控制立刻到發生錯誤陳述式接下去的陳述式,而繼續執行下去
Dim myrng As Range
Dim myhyps As Hyperlinks
Dim myhyp As Hyperlink
Dim j As Integer
Dim k As Integer
'從網頁擷取資料
For n = 1 To 1
Sheets("擷取資料").Select
Cells.Select
Selection.ClearContents
Range("A1").Select
'取出網頁路徑
Set myrng = Sheets("選手網址").Cells(n + 1, 1)
With myrng
Set myhyps = .Hyperlinks
Set myhyp = myhyps(1)