看板 Programming 關於我們 聯絡資訊
若在VBA中得到一個string變數 Andrew = "Test.txt" 然而在接下來的程式中我需要的是"Test" 請問有什麼方法可以利用已知的變數Andrew取得? 其實原本是要用在自動產生圖表的巨集 我利用dir的方式得到某一目錄下的檔案Test.txt 然而圖表產生所參考的資料是Sheets(Test) 謝謝 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.84.22.253
andrewho:喔喔 其實用left,len等函數即可 就像在 60.250.68.91 12/18 10:11
andrewho:excel中一樣呢 60.250.68.91 12/18 10:11