0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VBA .csv保存

Posted at
Sub csv保存()
    
        Application.DisplayAlerts = False  '上書き保存する際に、警告メッセージを無視します。
        
        ActiveSheet.Copy '現在のアクティブシートを新規ブックに保存します。
        
        ActiveWorkbook.SaveAs Filename:="C:\Users\user\Documents\text.csv", FileFormat:=xlCSV, Local:=True 'CSVファイルに保存します。
        
        Application.DisplayAlerts = True    '警告メッセージの無視を解除します。
        
        ActiveWorkbook.Close SaveChanges:=False

End Sub
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?