• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

SaveAs

Jazzman

New Member
Hi,

Is there a way to use Application.Dialogs(xlDialogSaveAs) to save a single sheet into a new workbook?
 
You could use Application.GetSaveAs method.
Code:
    Dim fn As String
    fn = Application.GetSaveAsFilename()
    If fn = "False" Then Exit Sub
    'Your sheet saving code here.
 
Hello Jazzman.

Just an idea..

VBA Syntax and sample VBA code to Save a Sheet as Workbook using VBA

Workbook1.Sheets("Worksheet1).Copy BEFORE:=Workbook2.Sheets(1)

WORKBOOK. SAVEAS “FILE PATH TO SAVE”



i am on my mobile actually...So Let me know if you need complete code.

Regards
Monty
 
Back
Top