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

[µo°Ý] ¸ê®Æ®w§ì¨ú¶W¹L65536¦p¦ó²£¥Í·s¤u§@ªí

[µo°Ý] ¸ê®Æ®w§ì¨ú¶W¹L65536¦p¦ó²£¥Í·s¤u§@ªí

DEAR ALL ¤j¤j
1.¦p¹Ï¤@¬°¦Û°Ê§ì¨ú¸ê®Æ®w¤º¤§¸ê®Æ.
  1.1 ¸ê®Æ <=65536 §¡µL°ÝÃD.
2.¦ý¸ê®Æ®w§ì¨ú¶W¹L65536«h·|¨q¥X´£¥Ü ¸ê®Æ65536 µLªk¥þ³¡Åã¥Ü
3.½Ð±Ð¦p¦ó¼W¥[§PÂ_µ{¦¡.·í >65536 ®É¦Û°Ê²£¥ÍSHEET2  SHEET3 ......±N¸ê®Æ®w¸ê®ÆALL§ì¨ú
4.·Ð¤£§[½ç±Ð.

¹Ï¤@
Sub ¦Û°Ê§ì¨ú¸ê®Æ®w()
    Sheet1.Visible = True
    Sheet1.[a1:iv65536].ClearContents
    Sheet1.Select
    Range("A1").Select
    With ActiveSheet.QueryTables.Add(Connection:= _
        "ODBC;DRIVER={Microsoft ODBC for Oracle};UID=URCE01B;PWD=*****;SERVER=jsrs05a;", _
        Destination:=Range("A1"))
        .CommandText = Array( _
        "SELECT TBDD2002.TITLE, TBDD2002.PN, TBDD2002.ENG, TBDD2002.PCBKIND, VWDD80022.PN, VWDD80022.PN_S, VWDD80022.BQTY, VWDD80022.PQTY, VWDD80022.TSTATUS, VWDD80022.SUPPLY, VWDD80022.POINT, VWDD80022.ASSIST" _
        , _
        "ANT, VWDD80022.DWMK, VWDD80022.MEM, VWDD80022.CHGID, VWDD80022.CHGNM, VWDD80022.CHGDATE, VWDD80022.DWDATE, TBDD2002.CSTNAME, TBDD2002.DIRCU" & Chr(13) & "" & Chr(10) & "FROM URCE01P.TBDD2002 TBDD2002, URCE01P.VWDD80022 VWDD80022" & Chr(13) & "" & Chr(10) & "WHERE TBDD2002.PN = VWDD80022.PN" _
        )
        .Name = "¨Ó¦Û PDM DATA ªº¬d¸ß_1"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .PreserveColumnInfo = True
        .Refresh BackgroundQuery:=False
    End With

End Sub
ù

EXCEL 2007 ¶}©l¤ä´©¶W¹L 65536 ¸Uµ§
§A¥i¥H¦Ò¼{¥Î EXCEL 2007 ¥H¤Wª©¥»

TOP

DEAR  jackyq  SIR
  THANKS*10000
ù

TOP

        ÀR«ä¦Û¦b : §g¤l¬°¥Ø¼Ð¡A¤p¤H¬°¥Øªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD