ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with custom save as dialog box. (https://www.excelbanter.com/excel-discussion-misc-queries/100573-help-custom-save-dialog-box.html)

control freak

Help with custom save as dialog box.
 
Hello, i am using the following code to promt the user to save a
workbook (so they dont overwrite the template, name of save is based on
cell b2.


Set wbDestination = Workbooks.Add
Excel.Application.Dialogs(xlDialogSaveAs).Show Range("b2")


It works fine unless i click cancel, it still saves the book (just
calling it book1) any way to make the cancel button actually cancel the
operation in my macro?


Any help is appreciated

Thank you

Troy



All times are GMT +1. The time now is 02:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com