Not sure about the best approach but look up the GetSaveAsFilename method in help.