返回列表 上一主題 發帖

[發問] 如何使用vb自動存檔?

假設內容在A欄
strFilename = [B1] & [B2]
    Columns(1).SpecialCells(xlCellTypeBlanks).Select
    Selection.Delete Shift:=xlUp
    [B1] = ""
    [B2] = ""
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:="C:\...\" & strFilename & ".txt", FileFormat:=xlUnicodeText
    Application.DisplayAlerts = True
懂得發問,答案就會在其中

今日の一秒は  明日にない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

        靜思自在 : 君子為目標,小人為目的。
返回列表 上一主題