¦p¦ó¨C¦¸¶}±Ò¿ï¾Ü¶×¤J¤å¦rÀɤ§¸ô®|
- ©«¤l
- 25
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 156
- ÂI¦W
- 0
- §@·~¨t²Î
- vista
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2021-8-29
|
¦p¦ó¨C¦¸¶}±Ò¿ï¾Ü¶×¤J¤å¦rÀɤ§¸ô®|
¥H¤Uªºµ{¦¡¬O¥Î¿ý»s¥¨¶°ªº¥\¯à§¹¦¨ªº
¥Dn¬On±N¤å¦rÀɶפJexcel«ü©wÄæ¦ì
¥i¬O¦]¬°¦³®ÉÔ¤å¦rÀɸô®|¤£¤@¼Ë
Pµ{¦¡µLªk¶¶§Q°õ¦æ
¤£ª¾¹Dn«ç¼Ë§ï¦¨¥i¥H¸õ¥Xµøµ¡¿ï¾ÜÀɮ׸ô®|¡A¤~¥i¥H¤£¥Î¨C¦¸«¿ý¥¨¶°
§Æ±æ¦³¤H¯à¨ó§U¡AÁÂÁÂ- Sub Macro1()
- '
- ' Macro1 Macro
- ' ¶×¤JÀÉ®×
- '
- '
- With ActiveSheet.QueryTables.Add(Connection:= _
- "TEXT;C:\Users\USER\Desktop\·s·|\99.txt", Destination:=Range("$A$2"))
- .Name = "99"
- .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 = xlFixedWidth
- .TextFileTextQualifier = xlTextQualifierDoubleQuote
- .TextFileConsecutiveDelimiter = False
- .TextFileTabDelimiter = True
- .TextFileSemicolonDelimiter = False
- .TextFileCommaDelimiter = False
- .TextFileSpaceDelimiter = False
- .TextFileColumnDataTypes = Array(9, 1, 9, 9)
- .TextFileFixedColumnWidths = Array(38, 32, 28)
- .TextFileTrailingMinusNumbers = True
- .Refresh BackgroundQuery:=False
- End With
- ActiveWindow.SmallScroll Down:=-27
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 25
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 156
- ÂI¦W
- 0
- §@·~¨t²Î
- vista
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2021-8-29
|
¦^´_ 3# PKKO
·PÁ§A
¶¶§Q¸Ñ¨M¤u§@¤Wªº°ÝÃD |
|
|
|
|
|
|
- ©«¤l
- 25
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 156
- ÂI¦W
- 0
- §@·~¨t²Î
- vista
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2021-8-29
|
¦^´_ 2# Kubi
«D±`ÁÂÁÂ
¥i¥H¥Î¤F |
|
|
|
|
|
|
- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¦^´_ 1# sping
'¿ïÀÉ®×
Set FD = Excel.Application.FileDialog(msoFileDialogFilePicker) '³]©w¿ï¨úÀÉ®×¥\¯à
FD.Filters.Clear '²M°£¤§«eªº¸ê®Æ
'FD..InitialFileName = "c:temp\"'Àq»{¸ô®|
FD.Filters.Add "Excel File", "*.xls*" '³]©wÅã¥Üªº°ÆÀɦW
If FD.Show = -1 Then
Path = FD.SelectedItems(1)
Else
End
End If
Workbooks.Open Path |
|
PKKO
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 170
- ÂI¦W
- 0
- §@·~¨t²Î
- Window 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-9-5
- ³Ì«áµn¿ý
- 2022-7-20
|
¦^´_ 1# sping
¸Õ¸Õ¬Ý- Sub Macro1()
- '
- ' Macro1 Macro
- ' ¶×¤JÀÉ®×
- '
- '
- txtFile = Application.GetOpenFilename("¤å¦rÀÉ, *.txt")
- txtFile = "TEXT;" & txtFile
- With ActiveSheet.QueryTables.Add(Connection:=txtFile, Destination:=Range("$A$2"))
- .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 = xlFixedWidth
- .TextFileTextQualifier = xlTextQualifierDoubleQuote
- .TextFileConsecutiveDelimiter = False
- .TextFileTabDelimiter = True
- .TextFileSemicolonDelimiter = False
- .TextFileCommaDelimiter = False
- .TextFileSpaceDelimiter = False
- .TextFileColumnDataTypes = Array(9, 1, 9, 9)
- .TextFileFixedColumnWidths = Array(38, 32, 28)
- .TextFileTrailingMinusNumbers = True
- .Refresh BackgroundQuery:=False
- End With
- ActiveWindow.SmallScroll Down:=-27
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|