1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

EXCEL: Save a file

Discussion in 'Business Applications' started by sk0101, Sep 29, 2008.

Thread Status:
Not open for further replies.
  1. sk0101

    sk0101 Thread Starter

    Nov 8, 2007

    I am working on a save functionality. I want to save one/or two tabs while having more in the workbook.

    I used this code: But it saves all of them
    Dim wk As Excel.Workbook
    Set wk = Application.ActiveWorkbook
    file_name = "C:\testing.xls"
    wk.SaveAs (file_name)

    How can I modify the code so it saves just one tab? Avoiding of deleting the tabs or hidding the tabs?
    Thank you
  2. slurpee55


    Oct 20, 2004
    Files and worksheets are fundamentally different, yet intrinsically tied - I don't think you can do this.
    I believe you could export the worksheets you want to save to a new workbook, however, and save that as a new file.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/754441

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice