+ Reply to Thread
Results 1 to 5 of 5

saving only one sheet

  1. #1
    Registered User
    Join Date
    03-24-2010
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    50

    saving only one sheet

    hi all

    now I'm using save copy macro for saving entire workbook but I would like to have the same but for saving only one sheet from workbook can someone correct my code?

    here is code I use now

    Please Login or Register  to view this content.
    thank you
    Last edited by perko121; 03-26-2010 at 06:55 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: saving only one sheet

    1) Identify the sheet to copy
    2) Copy it with no destination causes it to copy into a new workbook
    3) Save the new workbook, then close it

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: saving only one sheet

    Doyou want to save one sheet as a separate workbook as JB suggests?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    03-24-2010
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: saving only one sheet

    yes, that is correct, save only one sheet as new workgroup ... so how do I integrate this code with my code ?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: saving only one sheet

    Your code is doing something completely different. This code will need to complete the task on its own...

    You can see the basic syntax already given, it just needs to be tweaked to match your unspecified requirements.

    What are the parameters for knowing which sheet you want saved? (I used "Sheet1")

    What are the parameters for naming this workbook? (I used "filename1sheetonly.xls")

    You can see what it does, and what your original code does. Can you tweak it to do what you want? If not you'll need to describe FULLY how it needs to operate.

+ 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