ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¬d¸ßweb³s½u«á¥X²{(¨S¦³¦^À³)

[µo°Ý] ¬d¸ßweb³s½u«á¥X²{(¨S¦³¦^À³)

½Ð±Ð¦U¦ì°ª¤â¡A§Ú·Q­n§â¥xªÑªº¤@¨Ç°ò¥»¸ê®Æ§ì¤U¨Ó¡A°µ¤F¥H¤Uªº¥¨¶°¡A¦ý¤£ª¾¹D¬°¤°»ò«ç»ò¶]³£¥u¯à¶]15­Ó
¶W¹L´N·|Åã¥Ü"¨S¦³¦^À³"¦Ó­n±j¨îÃö±¼excel (¦³¤@¦¸´¿¸g¯à¶]¨ì40­Ó)
ª¦¤F¤§«eªº¤å³¹µo²{Àx¦s¦b¬¡­¶Ã¯¸Ì­±ªº³s½u«Ü¦h
§â³s½u³£§R°£«á¦A¥[¤J
         Cells.Hyperlinks.Delete
        .Delete
½T¹ê³s½u¤]¨S¦³¦A¼W¥[¤F¡A¦ý¬OÁÙ¬O¥u¯à¶]15­Ó(­ú)
¦Ó¥B§Úªºexcel¥Î±¼¤F180MBªº°O¾ÐÅé(³o¦³Ãö«Y¶Ü?)
Àµ½ÐÀ°§Ú¸Ñ´b ¦]¬°¥Ø«eÁÙ¬O­Ó·s¤â
­Y¦³´£¨Ñ½d¨Òµ{¦¡½X¥i¥H¤j·§¼g¤@¤U­n¥[¦bµ{¦¡¤¤ªº­þ¤@¬q
¥H¤Î¤j·§ªº¥Î³~¶Ü
·P¿E¤£ºÉ ÁÂÁÂ!


§Úªºµ{¦¡½X¦p¤U¡G
Sub ¥¨¶°§ó·s°ò¥»¸ê®Æ2()
    a = Sheets("Á`ªí").Range("B1")
    b = Sheets("Á`ªí").Range("C1")
    For i = a To b
    s = Sheets("Á`ªí").Range("B" & i)
    Sheets("°ò¥»").Select
    Cells.Select
    Selection.Delete Shift:=xlUp
   
    With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;http://justdata.yuanta.com.tw/z/zc/zca/zca_" & s & ".asp.htm", Destination:= _
        Range("$A$1"))
        .Name = "zca_" & s & ".asp"
        .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 = "3"
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
        .Refresh BackgroundQuery:=False
         Cells.Hyperlinks.Delete
        .Delete
    End With

    Sheets("°ò¥»").Select
    Range("C10").Select
    Selection.Copy
    Sheets("Á`ªí").Select
    Range("R" & i).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False     
    ActiveWorkbook.Save

    Next
   
End Sub

±z¦n
¥Ñ©ó±z¥¼´£¨Ñ¥H¤U¸ê®Æ,¥[¤W±z¥¼¹ïÅܼƶi¦æ©w¸q
   a = Sheets("Á`ªí").Range("B1")
    b = Sheets("Á`ªí").Range("C1")
¦]¦¹«Øij§ï¬°¥H¤Uµ{¦¡½X
Dim a, b, i As Integer
Dim s As String
a = Sheets("Á`ªí").Range("B1").text '­ì¥»ªº¼gªk¬O«ü¤@­Ó½d³ò,¤£¬O¼Æ¦r,¦¹³B¥Îtext¬O±N¨ä§ï¬°¦r¦ê,¦ý­Y¸Ó®æ¤l¤¤¨Ã«D¯Â¼Æ¦r,«h¥²¶·±N¸Ó®æ¤¤ªº¦r¦ê¶i¦æ³B²z
b = Sheets("Á`ªí").Range("C1").text
s = Sheets("Á`ªí").Range("B" & i).text
¥H¤W¬O§Ú¨Ì¾Ú±z´£¨Ñªº¸ê®Æ,´£¨Ñªº«Øij,§Ú¥¼¹ê»Ú°õ¦æ¹L
ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : ¯à¥I¥X·R¤ß´N¬OºÖ¡A¯à®ø°£·Ð´o´N¬O¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD