Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to do a save as macro that will prompt the user to designate the file
location and enter their own personalized file name. Then once they click okay to save, I want to be able to complete the macro by emailing it out. Help! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Danielle
Install my Mail add-i and you have what you want http://www.rondebruin.nl/mail/add-in.htm For code look in the VBA help for See this example GetSaveAsFilename Sub Test() Dim fname As Variant Dim NewWb As Workbook Set NewWb = Workbooks.Add(xlWBATWorksheet) fname = Application.GetSaveAsFilename("", _ fileFilter:="Excel Files (*.xls), *.xls") If fname < False Then NewWb.SaveAs fname NewWb.Close False Else NewWb.Close False End If End Sub For mail code see my Mail page -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Danielle0904" wrote in message ... I want to do a save as macro that will prompt the user to designate the file location and enter their own personalized file name. Then once they click okay to save, I want to be able to complete the macro by emailing it out. Help! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Try this. Do fName = Application.GetSaveAsFilename Loop Until fName < False And fName < """" ThisWorkbook.SaveAs fName Regards, Per "Danielle0904" skrev i meddelelsen ... I want to do a save as macro that will prompt the user to designate the file location and enter their own personalized file name. Then once they click okay to save, I want to be able to complete the macro by emailing it out. Help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SAVE and SAVE AS options disappeared from the drop down FILE menu | Excel Discussion (Misc queries) | |||
Save options | Excel Discussion (Misc queries) | |||
Save options | New Users to Excel | |||
How do I set Save Options? | Excel Discussion (Misc queries) | |||
How can I save an other route in my Tools bar-options-save? IT | Excel Discussion (Misc queries) |