+ Reply to Thread
Results 1 to 4 of 4

Please delete this post

Hybrid View

SinGin Please delete this post 05-09-2010, 10:39 PM
antoka05 Re: Code to save only the... 05-10-2010, 02:36 AM
SinGin Re: Code to save only the... 05-10-2010, 08:48 AM
SinGin Re: Code to save only the... 05-15-2010, 06:52 PM
  1. #1
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Please delete this post

    I guess I did some cross-posting and I appologize for that. Another member pointed this out to me. So this post is no longer relevant.
    Last edited by SinGin; 05-22-2010 at 09:51 PM. Reason: Please delete this post

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Code to save only the current worksheet

    You can try with this macro:
    Sub Macro1()
       Dim fileSaveName
       fileSaveName = Application.GetSaveAsFilename("Excel Files (*.xl*), *.xl")
       If fileSaveName = False Then
          MsgBox "No name selected"
          Exit Sub
       End If
        
       Application.ScreenUpdating = False
       ThisWorkbook.ActiveSheet.Copy
       ActiveWorkbook.SaveAs Filename:=fileSaveName, FileFormat:=xlNormal
       ActiveWorkbook.Close
       Application.ScreenUpdating = True
    End Sub
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Code to save only the current worksheet

    Works great, thanks!

  4. #4
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Code to save only the current worksheet

    I noticed after trying to include this in my overall project, that the code you gave me saves a single workbook, however, it does not have the information from the current worksheet in it. I messed with it trying to make it happen, but no luck. Any ideas?

    Thanks for the help you already provided, and I appreciate any further help you can offer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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