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

Refresh BackgroundQuery:=False error

Refresh BackgroundQuery:=False error

©³¤U³o¬q¤å¦rÀɬd¸ß,¦pªG¶}±ÒÀɮ׿ù»~ªº¸Ü,¤§«á´Nºâ¦A­«·s¶}±Ò¥¿½TÀÉ®×,µ{¦¡run¨ì .refresh BackgroundQuery:=False ³o¸Ì³£·|¥X²{error(°õ¦æ¶¥¬q¿ù»~1004),½Ð°Ý¸Ó¥Î¤°»ò¤èªk¥i¥Hreset±¼?ÁÂÁÂ~

        With ActiveSheet.QueryTables.Add(Connection:= _
        "TEXT;\\server\" & Sheet2.text1 , _
        Destination:=Range("$A$1"))
        .Name = "test"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .TextFilePromptOnRefresh = False
        .TextFilePlatform = 950
        .TextFileStartRow = 1
        .TextFileParseType = xlDelimited
        .TextFileTextQualifier = xlTextQualifierDoubleQuote
        .TextFileConsecutiveDelimiter = True
        .TextFileTabDelimiter = False
        .TextFileSemicolonDelimiter = False
        .TextFileCommaDelimiter = False
        .TextFileSpaceDelimiter = True
        .TextFileColumnDataTypes = Array(1)
        .TextFileTrailingMinusNumbers = True
        .refresh BackgroundQuery:=False    End With

¦^´_ 1# herhsiu
ºô§}¦³°ÝÃD
Connection:=  "TEXT;\\server\" & Sheet2.text1
¦Û¤v´ú¸Õ¬Ý¬Ý

TOP

¦^´_ 2# GBKEE


    ©êºp§Ú¶K¿ù,¦ý³o­Ócase¬O¶}¹ïÀɮ׮ɳ£¨S°ÝÃD,¶}¿ùÀÉ®×¥X²{¿ù»~®É§Y¨Ï¦A­«·s¶}±Ò¥¿½TÀÉ®×ÁÙ¬O·|¥X²{error,¥²¶·§âÀÉ®×Ãö³¬¦A­«¶},¦³¨S¦³¿ìªkreset?

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD