Excel ¦p¦ó¦bI´º§¹¦¨¼Æ¾Ú¾É¤J
- ©«¤l
- 4
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 6
- ÂI¦W
- 0
- §@·~¨t²Î
- Mac
- ³nÅ骩¥»
- 10.6
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-1-16
- ³Ì«áµn¿ý
- 2015-7-9
|
Excel ¦p¦ó¦bI´º§¹¦¨¼Æ¾Ú¾É¤J
·í§Ú°õ¦æ¦¨¥\¾É¤J¥~³¡¼Æ¾Ú¡Aexcel ³£·|³QIJµo¡]excel app icon·|¶À¦â¤£°±°{Ã{¡^¡AµM«á´Nn¨C¦¸¤â°ÊÂI·Æ¹«¥h§â¥¦«ö±¼¡C
¦pªG¬O¨C¤ÀÄÁ¾É¤J¤@¦¸¡A´Nn¨C¤ÀÄÁ³£«ö¤@¦¸·Æ¹«... ¤£ª¾¦³¿ìªkÅýexcel¦bI´º°ÊºA¾É¤J¡A¤S¤£·|IJµoicon¤£°±°{Ã{©O¡H
Sub hkdata()
¤u§@ªí1.Cells.Clear
'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://hk.finance.yahoo.com/q?s=^hsi", Destination:=Range("$A$1"))
.Name = "q?s=^hsi"
.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
End Sub |
-
-
excel.png
(19.7 KB)
|
|
|
|
|
|
- ©«¤l
- 4
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 6
- ÂI¦W
- 0
- §@·~¨t²Î
- Mac
- ³nÅ骩¥»
- 10.6
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-1-16
- ³Ì«áµn¿ý
- 2015-7-9
|
¥»©«³Ì«á¥Ñ sfff ©ó 2015-6-29 03:46 ½s¿è
ªGµM°£¤F¥´¶}¤å¥óªºº¦¸¾É¤J¦³Äµ§i¡A¤§«á´NµLIJµoĵ§i°T®§¤F¡I
:victory: Thanks |
|
|
|
|
|
|
¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
·í§Ú°õ¦æ¦¨¥\¾É¤J¥~³¡¼Æ¾Ú¡Aexcel ³£·|³QIJµo¡]excel app icon·|¶À¦â¤£°±°{Ã{¡^¡AµM«á´Nn¨C¦¸¤â°ÊÂI·Æ¹«¥h ...
sfff µoªí©ó 2015-6-28 12:29
§â Application.DisplayAlerts = False ' Ãö³¬Äµ§i°T®§ ©ñ¦b ¤u§@ªí1.Cells.Clear «e± |
|
¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~
¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk
¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM
|
|
|
|
|