Hello,
I have the below code, I have nearly completed what I am trying to do. The final stage would be to save each workbook into different folders depending on the country code. Can you please help?
Private Sub filename_cellvalue()
Dim Path As String
Dim filename As String
Dim filename2 As String
'Dim country As String
Path = ""
filename = Range("A1")
filename2 = Range("B1")
ActiveWorkbook.SaveAs filename:=Path & filename & filename2 & ".xls", FileFormat:=xlNormal
End Sub
I have the below code, I have nearly completed what I am trying to do. The final stage would be to save each workbook into different folders depending on the country code. Can you please help?
Private Sub filename_cellvalue()
Dim Path As String
Dim filename As String
Dim filename2 As String
'Dim country As String
Path = ""
filename = Range("A1")
filename2 = Range("B1")
ActiveWorkbook.SaveAs filename:=Path & filename & filename2 & ".xls", FileFormat:=xlNormal
End Sub