- ©«¤l
- 133
- ¥DÃD
- 9
- ºëµØ
- 0
- ¿n¤À
- 147
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2024-11-11
|
©³¤U¬õ¦â¦rÅé¬O§Ú¼W¥[ªº,¨ä¾l§Ú¬Ocopy§Aªºµ{¦¡¨S°µ×§ï
Sub ¥¨¶°2()
On Error Resume Next 'ªí¥Ü·í¤@Ó°õ¦æ¶¥¬q¿ù»~²£¥Í®É¡Aµ{¦¡±±¨î¥ß¨è¨ìµo¥Í¿ù»~³¯z¦¡±µ¤U¥hªº³¯z¦¡¡A¦ÓÄ~Äò°õ¦æ¤U¥h
Dim myrng As Range
Dim myhyps As Hyperlinks
Dim myhyp As Hyperlink
Dim j As Integer
Dim k As Integer
'±qºô¶Â^¨ú¸ê®Æ
For n = 1 To 1
Sheets("Â^¨ú¸ê®Æ").Select
Cells.Select
Selection.ClearContents
Range("A1").Select
'¨ú¥Xºô¶¸ô®|
Set myrng = Sheets("¿ï¤âºô§}").Cells(n + 1, 1)
With myrng
Set myhyps = .Hyperlinks
Set myhyp = myhyps(1)
End With
'myhyp.AddressÅܼƥi¥Hª½±µ¥Îºô§}¨ú¥N
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;" & myhyp.Address _
, Destination:=Range("$A$1"))
.Name = "Novak-Djokovic_1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
j = Cells.Find("Prize Money", lookat:=xlPart).Row '§ä Prize Money ¦C¦ì
MsgBox Cells(j + 1, 6) '¦pªG¸ê®Æ©T©w¦b²Ä¤»Äæ,´N¥u»Ýn¤W±¨º¦æ©M¦¹¦æµ{¦¡
'k = Cells(j + 1, 256).End(xlToLeft).Column '¦bPrize Money¤U¤@¦C,¦^¶Ç³Ì«á¤@Äæ...¦pªG¸ê®Æ¤£©T©w¦b²Ä¤»Äæ,¤~»Ýn§ï¬°¦¹¦æµ{¦¡
Next n
End Sub |
|