Hello,
I am trying to build a button that will automatically convert the file from macro enabled to macro disabled version.
I have tried the following but it's not really working correctly.
-----------------------------------------------------------------------------------------------------------------------------------------
Sub Final_SAVE_to_GDrive_Inventory_Folder()
'
' Final_SAVE_to_GDrive_Inventory_Folder Macro
'
'
Dim FP As String, FN As String
FP = "H:\My Documents\Inventory"
FN = Range("Template!D2").Value
ActiveWorkbook.SAVEAS Filename:=FP & FN & ".xlsx"
End Sub
-------------------------------------------------------------------------------------------------------------------------------------------
I found that if I use ".xls" it will save but I get an warning message and an option to enable the macros.
I am trying to build a button that will automatically convert the file from macro enabled to macro disabled version.
I have tried the following but it's not really working correctly.
-----------------------------------------------------------------------------------------------------------------------------------------
Sub Final_SAVE_to_GDrive_Inventory_Folder()
'
' Final_SAVE_to_GDrive_Inventory_Folder Macro
'
'
Dim FP As String, FN As String
FP = "H:\My Documents\Inventory"
FN = Range("Template!D2").Value
ActiveWorkbook.SAVEAS Filename:=FP & FN & ".xlsx"
End Sub
-------------------------------------------------------------------------------------------------------------------------------------------
I found that if I use ".xls" it will save but I get an warning message and an option to enable the macros.