- 帖子
- 472
- 主題
- 5
- 精華
- 0
- 積分
- 485
- 點名
- 0
- 作業系統
- Windows
- 軟體版本
- MS Office
- 閱讀權限
- 100
- 性別
- 男
- 來自
- 香港
- 註冊時間
- 2010-7-4
- 最後登錄
- 2014-12-28

|
2#
發表於 2011-11-3 21:42
| 只看該作者
假設內容在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 |
|