A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Protect selected settings in 'options'



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2009, 08:37 PM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 2,649
Default Protect selected settings in 'options'

In a particular workbook I have selected certain settings (tools, options,
view), namely not showing the sheet tabs, horizontal scroll bar, formula bar.
For this workbook is there a way I can protect these settings from others
changing them?
--
John
  #2  
Old June 14th, 2009, 09:52 PM posted to microsoft.public.excel.worksheet.functions
Harlan Grove[_2_]
external usenet poster
 
Posts: 1,439
Default Protect selected settings in 'options'

John wrote...
In a particular workbook I have selected certain settings (tools, options,
view), namely not showing the sheet tabs, horizontal scroll bar, formula bar.
For this workbook is there a way I can protect these settings from others
changing them?


No.

At least not loading the workbook in an interactive Excel session. You
could use an application written in any language supported by Visual
Studio (VS) to run an Excel session as an Automation server, then open
your workbook in that Excel Automation session. Your VS application
would need to disable all UI components you don't want to provide your
users.

You could approximate this with Excel itself, using an Open event
handler to disable all unwanted UI components, but your users could
open your workbook with macros disabled.
  #3  
Old June 15th, 2009, 03:19 AM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 2,649
Default Protect selected settings in 'options'

Thanks for your time and explanation.
--
John


"Harlan Grove" wrote:

John wrote...
In a particular workbook I have selected certain settings (tools, options,
view), namely not showing the sheet tabs, horizontal scroll bar, formula bar.
For this workbook is there a way I can protect these settings from others
changing them?


No.

At least not loading the workbook in an interactive Excel session. You
could use an application written in any language supported by Visual
Studio (VS) to run an Excel session as an Automation server, then open
your workbook in that Excel Automation session. Your VS application
would need to disable all UI components you don't want to provide your
users.

You could approximate this with Excel itself, using an Open event
handler to disable all unwanted UI components, but your users could
open your workbook with macros disabled.

  #4  
Old June 15th, 2009, 03:45 AM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default Protect selected settings in 'options'

Hi,

When you do hide these features you aren't preventing the user from using
the keyboard to navigate within a sheet and there are many ways to go from
sheet to sheet other than clicking the tabs. So what are you trying to
accomplish by hiding these features, since you aren't preventing the use of
equivalent command?

One minor thing you could do is set those option to the your desired state
everytime they open the workbook, so if they or anyone else has turned those
features back on you can start them off with them off.

Here is sample code

Private Sub Workbook_Open()
With ActiveWindow
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
End With
End Sub

Put this in the thisWorkbook object in the Visual Basic Editor.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"John" wrote:

In a particular workbook I have selected certain settings (tools, options,
view), namely not showing the sheet tabs, horizontal scroll bar, formula bar.
For this workbook is there a way I can protect these settings from others
changing them?
--
John

  #5  
Old June 15th, 2009, 07:48 AM posted to microsoft.public.excel.worksheet.functions
Harlan Grove[_2_]
external usenet poster
 
Posts: 1,439
Default Protect selected settings in 'options'

Shane Devenshire wrote...
When you do hide these features you aren't preventing the user from using
the keyboard to navigate within a sheet and there are many ways to go from
sheet to sheet other than clicking the tabs. . . .

....

Could use OnKey method calls to map [Ctrl]+[PgUp] and [Ctrl]+[PgDn] to
do-nothing macros, which would effectively disable them. Same caveat
as I mentioned previously: requires macros to do this, so could be
disabled by opening the workbook with macros disabled. OTOH, opening
the workbook in an Excel Automation session driven by an outside
application could ensure that the necessary OnKey method calls were
run.

So if an outside application has disabled all cursor keys and the [F5]
key, hidden the worksheet tabs, and hidden the standard menu, how
could a user move between worksheets?
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.