QueryTables«½Æ¬d¸ß¡A¦p¦óÂл\¤W¤@µ§¬d¸ß
- ©«¤l
- 16
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 68
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-2-26
- ³Ì«áµn¿ý
- 2021-10-4
|
QueryTables«½Æ¬d¸ß¡A¦p¦óÂл\¤W¤@µ§¬d¸ß
¦U¦ì¤j¤j¦w¦w
§Ú¨Ï¥ÎQueryTable§@¬d¸ß®É¡A
¨C¦¸¬d¸ß¤@Ӫѻù¸ê®Æ
´N·|§â«e¤@Ó¤w¸g¬d¦nªºªÑ»ù¸ê®Æ©¹®ÇÃäÀ½
¨ì³Ì«áÀx¦s®æ´N·|¥ÎÁj
§Ú§Æ±æªº¬O¨C¦¸¬d¸ß³£¨Ï¥Î¦P¤@Ó½d³òªºÀx¦s®æ¡A
·N§Y§â¤W¤@Ó¬d¦nªºªÑ»ù¸ê®ÆÂл\(¤£n©¹®ÇÃäÀ½)
§Ú¸Ó«ç»òקï©O¡H
µ{¦¡½X¦p¤U
With ActiveSheet.QueryTables.Add(Connection:="URL;https://tw.finance.yahoo.com/q/q?s=" & stockID, Destination:=Sheets(10).Range("A1"))
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "6"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
.Name = .ResultRange.Cells(3, 1)
End With |
|
|
|
|
|
|
- ©«¤l
- 361
- ¥DÃD
- 57
- ºëµØ
- 0
- ¿n¤À
- 426
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2003,2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2022-12-8
|
- Sub ex()
- Range("A:L").Clear
- With ActiveSheet.QueryTables.Add(Connection:="URL;https://tw.finance.yahoo.com/q/q?s=" & 1101, Destination:=Range("A1"))
- .WebSelectionType = xlSpecifiedTables
- .WebFormatting = xlWebFormattingNone
- .WebTables = "6"
- .Refresh BackgroundQuery:=False
- .Delete
- End With
- End Sub
½Æ»s¥N½X ¦^´_ 1# tsunamix03 |
|
|
|
|
|
|
- ©«¤l
- 16
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 68
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-2-26
- ³Ì«áµn¿ý
- 2021-10-4
|
·P®¦¼Ó¤W¨â¦ì°ª¤Hªº¸Ñµª¡A¤w¸g¶¶§Q¸Ñ¨M°ÝÃD¤F:) |
|
|
|
|
|
|