+ Reply to Thread
Results 1 to 3 of 3

Help with exporting sheet to a new work book

Hybrid View

  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Help with exporting sheet to a new work book

    Hi All,
    *
    Firstly let me thanks to the admin and all the members for
    their wonderful job which they are contributing in this great forum. I have
    learnt a lot from all of you.
    *
    I need a function where I would like to export my sheet1 to another workbook and save that workbook to a path .. with current date to

    \\is-fd01\Profiles\vkamalasanan\WorkTools

    thank you !!!
    Last edited by vpnvipin; 10-31-2012 at 04:02 AM.
    Vipin Oceans

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Help with exporting sheet to a new work book

    Hi-

    try;
    Sub test()
    With Application
        .ScreenUpdating = False
        .CutCopyMode = False
        .DisplayAlerts = False
    End With
    Sheets(1).Copy
    ActiveWorkbook.SaveAs "your_full_path\" & Format(Date, "mmddyyyyhhmmss") & ".xlsx"
    ActiveWorkbook.Close
    With Application
        .ScreenUpdating = True
        .CutCopyMode = True
        .DisplayAlerts = True
    End With
    End Sub
    Regards,
    event

  3. #3
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Re: Help with exporting sheet to a new work book

    Hi Event 21,

    Its working great, thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1