+ Reply to Thread
Results 1 to 6 of 6

VB Code to show hidden Excel worksheet

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Lake Elsinore
    MS-Off Ver
    Excel 2010
    Posts
    46

    VB Code to show hidden Excel worksheet

    Hello all,

    I have found code that allows me to save a workbook with a new name and then email it the saved file.

    The problem that I'm having is the ORIGINAL Excel file only shows one page (the input page) - that's perfect for the 1st part of the required use; however, I need the emailed workbook to have additional sheet shown when the recipient opens the file.

    Any help that can be given on how to do this – would be greatly appreciated. Below is the Code that I’ve used:


    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VB Code to show hidden Excel worksheet

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: VB Code to show hidden Excel worksheet

    a sub called auto_open in a module will run when the book is opened. Since you are already editing the workbook when you save it as a new file for sending, you could have a cell or named range somewhere out of the way, and change its value to something like "y" when you do the editing. Then:

    Please Login or Register  to view this content.
    or something like that...
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Registered User
    Join Date
    10-11-2012
    Location
    Lake Elsinore
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: VB Code to show hidden Excel worksheet

    Thank you both for addressing my question, I appreciate your help.

    Xladept - I added the code as you stated; however it did not work.

    Arkadi - I will not be editing it - the master is going to be used by many and then the emailed file is going to be sent to another perso; so, I'm not sure if your idea will work for this situation.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VB Code to show hidden Excel worksheet

    I hid a sheet and this code unhid it

    Please Login or Register  to view this content.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VB Code to show hidden Excel worksheet

    I need the emailed workbook to have additional sheet shown when the recipient opens the file.
    Oops! I didn't read thoroughly enough - try the red code in place of the other red code from my first post:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Command button to show hidden worksheet
    By Chioma1975 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2013, 12:24 PM
  2. Code to save current worksheet and hidden worksheet
    By fusion007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2011, 02:28 PM
  3. Hidden Worksheet code
    By incjourn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 03:09 PM
  4. would this code find a worksheet that his hidden ?
    By spyrule in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2006, 10:56 PM
  5. [SOLVED] Code to access a hidden worksheet
    By sir Lancelot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2005, 11:20 AM

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