我已經編寫了一個VBA代碼,用於將逗號分隔的數據元素輸出到文本文件,然後將其導入到分離的應用程序中。但是,我堅持如何刪除文本文件中生成的行結束符。
以下是我的數據的一個例子:使用VBA刪除文本文件末尾的逗號
Scenario,Capital,AFE
Capital Array,Drilling Capex 80/20,Replace,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
Capital Array,Facilities Tangible,Replace,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,250,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
Capital Array,Recompletion 80/20,Replace,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
我們張貼在完全相同的第二個,我覺得...但你有更好的格式,所以我會upvote你的。良好的快速工作。 ;-) –
@PaluMacil:事實上,你幾秒鐘快,所以+1也是如此。 ;-) – Heinzi