½Ð¤j¤j̨ó§U¤F¸Ñ¿z¿ï°ÝÃD,
- ©«¤l
- 97
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 133
- ÂI¦W
- 0
- §@·~¨t²Î
- xp2007
- ³nÅ骩¥»
- xp2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2012-8-12
- ³Ì«áµn¿ý
- 2020-12-25
|
½Ð¤j¤j̨ó§U¤F¸Ñ¿z¿ï°ÝÃD,
¤j¤jÌ, ¤p§Ì¹ïvbaª¾ÃѦ³, ªñ¤é¤p§Ì´X¸g¨¯W¤~§¹¦¨¤F¤@Óº¡¥H¬°¥i¦æªº¿z¿ïµ{¦¡, ¦ý·í¥Î®Éì¨Ó¬O¦æ¤£³q,
¬G¨D±Ð¦U¤j¤j¯à§¹¦¨¸Óµ{¦¡, ªþÀÉ, ÁÂÁÂ!!
¤p§Ìªºµ{¦¡½X¦b¤u§@ªíµ{¦¡°Ï, ·Ð½Ð¦U¤j¤j¨ó§U,
¿z¿ï.rar (17.45 KB)
|
|
hong912
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ joey0415 ©ó 2013-11-7 10:55 ½s¿è
§ï¸ô®|
D:\¿z¿ï.xls
»PSQL»yªk´N¯à§ä¨ì§A·Qnªº
select * from [Sheet1$] where ©m¦W='¦ó¤¯¼w'- Sub Macro1()
- '
- ' Macro1 Macro
- ' joey ¦b 2013/11/7 ¿ý»sªº¥¨¶°
- '
- '
- With ActiveSheet.QueryTables.Add(Connection:=Array( _
- "OLEDB;Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=D:\¿z¿ï.xls;Mode=Share Deny Write;Extended Properties=""HDR=" _
- , _
- "YES;"";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet OLEDB:Database Password="""";Jet OLEDB:Engine Type=35;Jet OLEDB:" _
- , _
- "Database Locking Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password" _
- , _
- "="""";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLE" _
- , "DB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False"), Destination _
- :=Range("A1"))
- .CommandType = xlCmdTable
- .CommandText = Array("select * from [Sheet1$] where ©m¦W='¦ó¤¯¼w'")
- .Name = "¿z¿ï"
- .FieldNames = True
- .RowNumbers = False
- .FillAdjacentFormulas = False
- .PreserveFormatting = True
- .RefreshOnFileOpen = False
- .BackgroundQuery = True
- .RefreshStyle = xlInsertDeleteCells
- .SavePassword = False
- .SaveData = True
- .AdjustColumnWidth = True
- .RefreshPeriod = 0
- .PreserveColumnInfo = True
- .SourceDataFile = "D:\¿z¿ï.xls"
- .Refresh BackgroundQuery:=False
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 97
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 133
- ÂI¦W
- 0
- §@·~¨t²Î
- xp2007
- ³nÅ骩¥»
- xp2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2012-8-12
- ³Ì«áµn¿ý
- 2020-12-25
|
¦^´_ 4# c_c_lai
·PÁ¦^À³, ·|²Ó¤ß¾Ç²ß, ¯¬§Ö¼Ö, ÁÂ!! |
|
hong912
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 3# hong912
½Ð±Nµ{¦¡½Æ»s©ó ThisWorkbook ¤º¡G- Option Explicit
- Sub Ex()
- Dim ·Ç«h1 As String, rngFilter As String
-
- ·Ç«h1 = InputBox("¿é¤J¤@¦r (·Ç«h)")
- If ·Ç«h1 = "" Then Exit Sub
-
- With Sheets("Sheet1")
- Sheets("Sheet2").Cells.Clear
- rngFilter = "*" & ·Ç«h1 & "*"
- .[AA1] = "©m¦W"
- .[AA2] = rngFilter
- .Range("A3").CurrentRegion.AdvancedFilter xlFilterCopy, .[AA1:AA2], _
- CopyToRange:=Sheets("Sheet2").Range("A3"), Unique:=True
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 97
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 133
- ÂI¦W
- 0
- §@·~¨t²Î
- xp2007
- ³nÅ骩¥»
- xp2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2012-8-12
- ³Ì«áµn¿ý
- 2020-12-25
|
¦^´_ 2# c_c_lai
ÁÂÁ¤j¤j¦^À³, abc¤£¹L¬Oµ{¦¡¦WºÙ, ¨Ã¨S¦³¹ê½è§@¥Î, ©ÎªÌ³o¼Ë»¡, ¤p§Ì»Ý¨D¤@¿z¿ïµ{¦¡, ·í¤p§Ì«ö¤U«ö¶s, ¼u¥X¤@®Ø¬[, ¥un¿é¤J¤@¦r, ¤u§@ªí2«K§â¤u§@ªí1¤ºcÄæ¦ì¦WºÙ, ©Ò¦³¦³¬ÛÃö¦r¦WºÙªº¸ê®Æ¦CÅã¥Ü©ó¤u§@ªí2 ¤º,
¦Ü©ó¤p§Ì©Ò¿×µ{¦¡, ¥»´N¬O¤£È¤@´£,
ÁÂÁÂÁÂ! |
|
hong912
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¤j¤jÌ, ¤p§Ì¹ïvbaª¾ÃѦ³, ªñ¤é¤p§Ì´X¸g¨¯W¤~§¹¦¨¤F¤@Óº¡¥H¬°¥i¦æªº¿z¿ïµ{¦¡, ¦ý·í¥Î®Éì¨Ó¬O¦æ¤£³q,
...
hong912 µoªí©ó 2013-11-3 14:10
¦³Ãö§Aªþ¥óÀɮפ¤¤§ abc() ¡A½Ð§Aµyµy»¡©ú¤@¤U §A¹ê»Ú¨ì©³·Qn°µ¬Æ»ò¡H
·Qªk¦p¦ó¡H µ{¦¡½X¤¤«á¦³ end if «e±«oµL if, ÁÙ¦³ len(XXX) ¡H
ÁÙ¦³¹LÂoªº±ø¥ó <> ¬Æ»ò¡H |
|
|
|
|
|
|