Hello Smythe78,
Sorry for the delay. The furnace broke last night and I have had to deal will the repair people coming and going all day. I am still not sure what you need. This macro will open the "SaveAs" dialog and let the user choose the folder and file. Have a look at this and let me know if this is close to what you are after.
As for my name, you're right. My family emigrated from Scotland about 150 years ago. The name has been passed down through the generations. Here in the states there about 4000 people with Leith as a first name or surname.
Sub RenameFile()
Dim FileFilter As String
Dim FileName As Variant
FileFilter = "Workbooks (*.xla;*.xls;*.xlt),*.xla;*.xls;*.xlt," _
& "Text Files (*.txt;*.csv),*.csv;*.txt,All Files (*.*),*.*"
FileName = Application.GetSaveAsFilename(FileFilter:=FileFilter)
If FileName = False Then Exit Sub
'Other code to validate the new name and rename the file.
End Sub
Bookmarks