標題:
test post
[打印本頁]
作者:
chonman0320
時間:
2022-12-15 20:43
標題:
test post
Private Sub CommandButton2_Click()
Dim xWs As Worksheet
Dim cw, cs, csv As String
Dim reopenwk As Workbook
SaveToDirectory = "D:\12"
ThisWorkbook.ActiveSheet.Copy
xcsvFile = SaveToDirectory & "\" & ActiveSheet.Name & Format(Date, " yyyymmdd") & ".csv"
Application.ActiveWorkbook.SaveAs Filename:=xcsvFile, FileFormat:=xlCSV, CreateBackup:=False
Application.ActiveWorkbook.Saved = True
Application.ActiveWorkbook.Close
End Sub
複製代碼
歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)