decadence
Well-known Member
- Joined
- Oct 9, 2015
- Messages
- 525
- Office Version
- 365
- 2016
- 2013
- 2010
- 2007
- Platform
- Windows
Hi, Is it possible to Save a copy of an active workbook to a specific folder as a CSV format file while using the dialog pop up? Also I have an issue where If I cancel then the active book name changes to False, can someone help please
Here is what I have at the moment which changes the active book name
Here is what I have at the moment which changes the active book name
Code:
Option Explicit
Dim varResult As Variant
Const StrPath As String = "C\User\Documents\"
Sub sbSaveExcelDialog()
varResult = Application.GetSaveAsFilename(FileFilter:="CSV Files (*.csv), *.csv", Title:="Save As CSV", InitialFileName:=StrPath)
End Sub