【问题标题】:Auto Saving File to Text Without Quote自动将文件保存为不带引号的文本
【发布时间】:2020-11-25 03:48:58
【问题描述】:

我将文件保存为文本格式。打开后,文件上似乎有引号。
它显示为“16,347.21”。我是德语格式。应该是 16,347.21。
如何删除它?

Dim path As String
Dim filename As String
path = Range("FolderPath").Text
filename = Range("FileName").Text
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs filename:=path & "\" & filename & ".txt", FileFormat:=xlText
ActiveWindow.Close
MsgBox "Data for Upload Saved"
Application.DisplayAlerts = True

【问题讨论】:

    标签: excel vba save


    【解决方案1】:

    xlTextPrinter 似乎不包括实数引号。试试:

    ActiveWorkbook.SaveAs filename:=path & "\" & filename & ".txt", FileFormat:=xlTextPrinter
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-11-08
      • 1970-01-01
      • 2022-01-18
      • 2019-04-26
      • 1970-01-01
      • 2019-07-03
      • 2017-05-12
      相关资源
      最近更新 更多