Need to save a worksheet to a specific location on prompt of a save sa dialog box

  • Hi All,


    I have one of the sheet named data whose data contains in the range from A1 till N100. I want to copy all the data to a new workbook as soon as the user clicks on a button.The saveas dialog box should appear which should ask me for the location and the new filename always.


    Please shelp me with the code.


    Regards,

  • Does the new workbook already exist or does the macro have to create it?

    You can say "THANK YOU" for help received by clicking the "Like" icon in the bottom right corner of the helper's post.
    Practice makes perfect. I am very far from perfect so I'm still practising.

  • Hi,
    Macro should create the file and whenever button will be clicked save as dialog box should appear where I should mention the file name and location.


    Regards,

  • Try this macro. Please not that the new workbook will not contain the macro.

    You can say "THANK YOU" for help received by clicking the "Like" icon in the bottom right corner of the helper's post.
    Practice makes perfect. I am very far from perfect so I'm still practising.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!