Hi all,
I have the following code, but this saves my workbook to C:/Documents.. is there a way to make it save to the same folder, my original file is in?
I have this Workbook full of macros and code which allows data manipulation efficiently sort of a 'Raw data converter', and this last macro would create the 'final formatted Data' version, saved as an xlsx, so it can be just stored, but the original 'converter' file will be on a shared drive, so I am not sure whre this macro will save to, if its not specified..
Could someone help me with this please?
I have the following code, but this saves my workbook to C:/Documents.. is there a way to make it save to the same folder, my original file is in?
I have this Workbook full of macros and code which allows data manipulation efficiently sort of a 'Raw data converter', and this last macro would create the 'final formatted Data' version, saved as an xlsx, so it can be just stored, but the original 'converter' file will be on a shared drive, so I am not sure whre this macro will save to, if its not specified..
Could someone help me with this please?
Code:
Sub Finalize()
Worksheets(Array("Info&Admin", "Data Summary")).Copy
ActiveWorkbook.SaveAs Filename:="Data_export " & Format(Date, "DD-MM-YYYY"), FileFormat:=xlWorkbookDefault
ActiveWorkbook.Close
End Sub