[問題] VBA 讀取txt format疑問
(若是和其他不同軟體互動之問題 請記得一併填寫)
軟體:Excel
版本:Office2010
Set uHead = uHead(2, 1)
With ActiveSheet.QueryTables.Add(Connection:="TEXT;" & uFile, Destination:=uHead)
.AdjustColumnWidth = False
.TextFileOtherDelimiter = ":" '冒號
.TextFileCommaDelimiter = True '逗號
.Refresh BackgroundQuery:=False
.Delete
End With
以上程式可以讀取txt檔裡的格式內容
但格式不對
https://drive.google.com/open?id=0B2p4am3C9DCoSGFaXzRzMElTc1E
以上為圖片內容 , 格式應該要儲存到每個方格中 , 但它只放在一個方格
以下為檔案 , 麻煩大大幫我看看 , 小弟感激不盡
https://drive.google.com/open?id=0B2p4am3C9DCoNmY3WHR4RHBXb2s
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 42.76.225.140
※ 文章網址: https://www.ptt.cc/bbs/Office/M.1507336933.A.DB0.html
※ 編輯: aup65797 (42.76.225.140), 10/07/2017 08:47:13
→
10/07 09:21,
8年前
, 1F
10/07 09:21, 1F
https://drive.google.com/open?id=0B2p4am3C9DCoY19WYmNSeFc0VkE
以上圖片 , 我有加入textfilespacedelimiter,但會出現錯誤
※ 編輯: aup65797 (42.76.225.140), 10/07/2017 10:24:46
→
10/07 11:20,
8年前
, 2F
10/07 11:20, 2F
→
10/07 11:20,
8年前
, 3F
10/07 11:20, 3F
Office 近期熱門文章
PTT數位生活區 即時熱門文章
14
42