I'm trying to create a macro to save an excel file as a cell value.
Sub Macro2()
'
' Macro2 Macro
'
'
Dim Path As String
Dim filename As String
Path = "/Users/NeilDavison/Library/Mobile Documents/com~apple~CloudDocs/NEMC/Invoices/2018"
filename = Range("JobNumber").Value
ActiveWorkbook.SaveAs filename:=Path & filename & "xlsm"
End Sub
I've tried the above code but am getting various error messages.
I'm using Excel 2016 for Mac.
Any ideas.
Cheers
Neil Mack
Sub Macro2()
'
' Macro2 Macro
'
'
Dim Path As String
Dim filename As String
Path = "/Users/NeilDavison/Library/Mobile Documents/com~apple~CloudDocs/NEMC/Invoices/2018"
filename = Range("JobNumber").Value
ActiveWorkbook.SaveAs filename:=Path & filename & "xlsm"
End Sub
I've tried the above code but am getting various error messages.
I'm using Excel 2016 for Mac.
Any ideas.
Cheers
Neil Mack