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?
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?
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 :
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![]()
Please Login or Register to view this content.
and the user only sees the results.
Last edited by Logit; 04-17-2017 at 10:37 PM.
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.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks