Hello,
Sorry if this was asked before, but I haven't found this specific set of command, nor managed to adapt it. So here goes:
I want to:
1. Copy a sheet intro a new workbook, then
2. Save that file in a specific folder
3. With a name that contains a fixed part "Nume", a cell value and another fixed part "Prenume"
I have the code below and basically it just the 3rd point I'm having trouble with. In the code, I want the bolded A1, to be the actual value in cell A1.
Sub Fisier()
'
' Fisier Macro
'
'
Sheets("extract").Select
Sheets("extract").Copy
ChDir "C:\Users\AntonG\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\AntonG\Desktop\Nume A1 Prenume.xlsx", FileFormat:=xlOpenXMLWorkbook _
, CreateBackup:=False
Application.WindowState = xlNormal
End Sub
I'd be so grateful for an idea.
Thank you!
Sorry if this was asked before, but I haven't found this specific set of command, nor managed to adapt it. So here goes:
I want to:
1. Copy a sheet intro a new workbook, then
2. Save that file in a specific folder
3. With a name that contains a fixed part "Nume", a cell value and another fixed part "Prenume"
I have the code below and basically it just the 3rd point I'm having trouble with. In the code, I want the bolded A1, to be the actual value in cell A1.
Sub Fisier()
'
' Fisier Macro
'
'
Sheets("extract").Select
Sheets("extract").Copy
ChDir "C:\Users\AntonG\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\AntonG\Desktop\Nume A1 Prenume.xlsx", FileFormat:=xlOpenXMLWorkbook _
, CreateBackup:=False
Application.WindowState = xlNormal
End Sub
I'd be so grateful for an idea.
Thank you!