+ Reply to Thread
Results 1 to 4 of 4

Working With Hidden Sheets

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Working With Hidden Sheets

    I have 2 "data" sheets in a workbook that I want to always keep hidden from the user. How can I select data on a hidden worksheet to pull over to the visible worksheet?

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Working With Hidden Sheets

    You can copy from a hidden sheet the same way as with a visible sheet.

    http://stackoverflow.com/questions/8...s-or-workbooks

    The sheet is only hidden from view but not from code.

    You can make the sheet visible just long enough to perform your code then make it hidden again. Here's a macro to copy a hidden sheet :

    Please Login or Register  to view this content.
    The line Application.ScreenUpdating = False prevents the user from seeing anything happening until the last line Application.ScreenUpdating = True. But, by then everything has been done
    and the user only sees the results.
    Last edited by Logit; 04-17-2017 at 10:37 PM.

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Working With Hidden Sheets

    Hi,

    There is no need to select data in order to copy it, and copying data from a hidden sheet works, unlike copying the sheet itself.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,427

    Re: Working With Hidden Sheets

    You should set the Visible property to Very Hidden an protect the VBA Project with a password.

    You should also set the cells' formulae to Hidden and protect the sheet with a password. Otherwise, people will know there is a sheet even though they can't see it. And it's a simple task to write your own formula to look at other cells on that sheet.

    Excel is not a secure environment!
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Working with hidden sheets
    By Roget168 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2017, 02:10 AM
  2. Hide Rows in most sheets skipping hidden sheets
    By NancyPez in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-11-2016, 04:53 PM
  3. Hide all sheets (very hidden) except one or Unhide all sheets with password
    By wmdriver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2015, 07:21 AM
  4. [SOLVED] Format all cells in all sheets to Protection Hidden on visible and hidden tabs
    By DeRo22 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-28-2014, 03:17 PM
  5. [SOLVED] trying to access the excel sheets/Tabs in the hidden/very hidden mode through hyperlinks
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2013, 06:50 AM
  6. hiding sheets but still letting macros run when printing hidden sheets
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 11-13-2008, 04:35 AM
  7. Unhide hidden sheets + Scroll all sheets
    By Chris Baluyot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2008, 06:24 PM

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