- ©«¤l
- 34
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 85
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-7-3
- ³Ì«áµn¿ý
- 2013-6-4
|
²£¥Í¦h¾lªº¦WºÙ
½Ð°Ý¦U¦ì¤j¤j
§Ú°õ¦æ©³¤U³o¨â¬qµ{¦¡,·|©w¸q¦h¾lªº¦WºÙ"2012_F3_1_10_1101.php?STK_NO=1101&myear=2012",¥B¤@ª½«ÂЩw¸q,n¦p¦óÅý¥L¤£¥Î¦Û°Ê©w¸q¦WºÙ
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.twse.com.tw/ch/trading/exchange/FMSRFK/genpage/Report" & year1 & "01/" & year1 & "_F3_1_10_" & stock_id & ".php?STK_NO=" & stock_id & "&myear=" & year1 & "" _
, Destination:=Range("A6"))
.Name = "2012_F3_1_10_1101.php?STK_NO=1101&myear=2012"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = False
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = False
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "8"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
..........................
...........................
..............................
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Address = [B2].Address Then
With Sheets("test")
If WorksheetFunction.CountIf(Sheets("Sheet3").Range("A2:A1425"), .[B2]) = 1 Then
Call test
Else
Call test3
End If
End With
End If
Application.EnableEvents = True
End Sub
ÁÂÁÂÀ°¦£ |
|