michael2420
New Member
- Joined
- Aug 24, 2016
- Messages
- 4
Hello,
I am a first time poster to this forum and have found everyone's advice to be invaluable. The code below is working for my purposes for the most part. I am looking to have my team be able to use the sheet it is for and would prefer it save to our shared drive rather than my documents. Unfortunately I am still a bit green when it comes to VBA as far as where to insert the code and how it should read.
If anyone could please help me out I would really appreciate it.
Thanks in advance.
I am a first time poster to this forum and have found everyone's advice to be invaluable. The code below is working for my purposes for the most part. I am looking to have my team be able to use the sheet it is for and would prefer it save to our shared drive rather than my documents. Unfortunately I am still a bit green when it comes to VBA as far as where to insert the code and how it should read.
If anyone could please help me out I would really appreciate it.
Thanks in advance.
Code:
Sub SaveSheet()
'
' SaveSheet Macro
Dim part1 As String
Dim part2 As String
Dim part3 As String
Dim part4 As String
part1 = Range("B2").Value
part2 = Range("D2").Value
part3 = Range("B3").Value
part4 = Range("D3").Value
ActiveWorkbook.SaveAs FileName:= _
"" & part1 & " " & part2 & " " & part3 & " " & part4 & " " & part5 & " .xlsm", FileFormat:= _
xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
End Sub