First save to save as

  • Thread starter Thread starter Shadow24
  • Start date Start date
S

Shadow24

"The first time you save a workbook, use the SaveAs method to specify a name
for the file."

I have my save and save as buttons working I just need to know how to make
it so that if I press the "Save" button before I do "Save As..." it will
automatically point to the "Save As..." code

Thanks for any help!! :)
 
Hi

Check the "Saved" property, like this:

If ThisWorkbook.Saved = False Then
'Use SaveAs
Else
'Use save
End If

Regards,
Per
 
Back
Top