Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Keeping Prying eyes out

Hi,

I have a spreadsheet that, when opened it checks who the user is then
hides specific rows based on the user. Unfortunately I have two problems

1. If they Select Disable Macros then they can see the whole
spreadsheet. How can I make it so that if they disable then the
spreadsheet just closes?

2. Once the routine has run and the rows are all hidden how do I stop
users just dragging the rows back out, or selecting an group then
selecting unhide?

Any help would be greatly appreciated.

Thanks

Keith
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Keeping Prying eyes out

1. The standard approach is to have a separate sheet that has a message on
it saying that macros need to be enabled. Hide all sheets except this one,
and create a workbook_open piece of code that does your biz and hides this
warning sheet. If they disable macros, all they will see is the warning.

2.You could disable the menu items.

application.CommandBars("Worksheet Menu
Bar").Controls("Format").controls("Row").Controls( "Unhide").enabled=false


--
HTH

Bob Phillips

"Keith" wrote in message
...
Hi,

I have a spreadsheet that, when opened it checks who the user is then
hides specific rows based on the user. Unfortunately I have two problems

1. If they Select Disable Macros then they can see the whole
spreadsheet. How can I make it so that if they disable then the
spreadsheet just closes?

2. Once the routine has run and the rows are all hidden how do I stop
users just dragging the rows back out, or selecting an group then
selecting unhide?

Any help would be greatly appreciated.

Thanks

Keith



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default Keeping Prying eyes out

or, if you have the files on a server, you can use a gpo to disable items. i
disable macros and protection this way for certain users and let managers
see these options so they can run the macros.

--


Gary


"Keith" wrote in message
...
Hi,

I have a spreadsheet that, when opened it checks who the user is then
hides specific rows based on the user. Unfortunately I have two problems

1. If they Select Disable Macros then they can see the whole spreadsheet.
How can I make it so that if they disable then the spreadsheet just
closes?

2. Once the routine has run and the rows are all hidden how do I stop
users just dragging the rows back out, or selecting an group then
selecting unhide?

Any help would be greatly appreciated.

Thanks

Keith



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Keeping Prying eyes out

Keith wrote:
Hi,

I have a spreadsheet that, when opened it checks who the user is then
hides specific rows based on the user. Unfortunately I have two problems

1. If they Select Disable Macros then they can see the whole
spreadsheet. How can I make it so that if they disable then the
spreadsheet just closes?

2. Once the routine has run and the rows are all hidden how do I stop
users just dragging the rows back out, or selecting an group then
selecting unhide?

Any help would be greatly appreciated.

Thanks

Keith


The method posted by Bob works fine for the first part, but the second
part doesn't work. after Controls("Format"). It doesn't like Controls
again.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Keeping Prying eyes out

If this data is really sensitive, then don't put it into your excel file.

Worksheet protection is easily broken.

Keith wrote:

Hi,

I have a spreadsheet that, when opened it checks who the user is then
hides specific rows based on the user. Unfortunately I have two problems

1. If they Select Disable Macros then they can see the whole
spreadsheet. How can I make it so that if they disable then the
spreadsheet just closes?

2. Once the routine has run and the rows are all hidden how do I stop
users just dragging the rows back out, or selecting an group then
selecting unhide?

Any help would be greatly appreciated.

Thanks

Keith


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Keeping Prying eyes out


"Keith" wrote in message
...
Keith wrote:

The method posted by Bob works fine for the first part, but the second
part doesn't work. after Controls("Format"). It doesn't like Controls
again.


It worked fine for me Keith ?


Bob


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a fresh pair of eyes ibvalentine Excel Worksheet Functions 11 May 3rd 09 11:33 PM
Fresh pair of Eyes required [email protected] Excel Worksheet Functions 4 March 17th 08 11:54 PM
My eyes Are Tiered, Forehead Bruised, My Desk Dented.!! Help??? KG121953 Excel Discussion (Misc queries) 1 October 5th 07 08:03 PM
Fonts Too Small or Eyes Too Big? Me2Ewe New Users to Excel 1 January 12th 06 06:33 AM
How do I use a password to protect an Excel file from peeping eyes? Fat Cat Excel Programming 1 January 30th 05 01:38 PM


All times are GMT +1. The time now is 04:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"