Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Password Protect Indicators

Greetings:
I am constantly protecting and unprotecting worksheets and workbooks.
This was driving me totally nuts, so I made up (with major input from user
group) protect/unprotect toolbar icons and put them in a custom tool bar.

Now I'm looking for a quick, easy to read visual aid to indicate:
A: password protect status of current (active) worksheet
B: Password protect status of current (active) Workbook

What I'm thinking is perhaps toolbar icons that changes colour, or changes
from blank to an "L" to indicate locked, or ..................... ??

The indicators should work (be active) on whichever workbook/worksheet is
currently active.

I hope my question is clear.
Hopefully someone can help me out, before I'm totally bald.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Password Protect Indicators

tried the protection toolbar?

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Greetings:
I am constantly protecting and unprotecting worksheets and workbooks.
This was driving me totally nuts, so I made up (with major input
from user group) protect/unprotect toolbar icons and put them in a
custom tool bar.

Now I'm looking for a quick, easy to read visual aid to indicate:
A: password protect status of current (active) worksheet
B: Password protect status of current (active) Workbook

What I'm thinking is perhaps toolbar icons that changes colour, or
changes from blank to an "L" to indicate locked, or
..................... ??

The indicators should work (be active) on whichever
workbook/worksheet is currently active.

I hope my question is clear.
Hopefully someone can help me out, before I'm totally bald.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Password Protect Indicators

Not so good if he still has 2000 or earlier.

--
HTH

Bob Phillips

"keepITcool" wrote in message
ft.com...
tried the protection toolbar?

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Greetings:
I am constantly protecting and unprotecting worksheets and workbooks.
This was driving me totally nuts, so I made up (with major input
from user group) protect/unprotect toolbar icons and put them in a
custom tool bar.

Now I'm looking for a quick, easy to read visual aid to indicate:
A: password protect status of current (active) worksheet
B: Password protect status of current (active) Workbook

What I'm thinking is perhaps toolbar icons that changes colour, or
changes from blank to an "L" to indicate locked, or
..................... ??

The indicators should work (be active) on whichever
workbook/worksheet is currently active.

I hope my question is clear.
Hopefully someone can help me out, before I'm totally bald.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Password Protect Indicators

Sorry, I should have specified.
I use Excel 2003.
I have the appropriate tool-bar icons open all the time.
The only way to "read" them is to put the cursor on them.
I'm looking for a "visual" read of the worksheet and workbook status.
I'm sure it must be possible.
Being a beginner, I just don't know where even to start.
thanks


"Bob Phillips" wrote:

Not so good if he still has 2000 or earlier.

--
HTH

Bob Phillips

"keepITcool" wrote in message
ft.com...
tried the protection toolbar?

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Greetings:
I am constantly protecting and unprotecting worksheets and workbooks.
This was driving me totally nuts, so I made up (with major input
from user group) protect/unprotect toolbar icons and put them in a
custom tool bar.

Now I'm looking for a quick, easy to read visual aid to indicate:
A: password protect status of current (active) worksheet
B: Password protect status of current (active) Workbook

What I'm thinking is perhaps toolbar icons that changes colour, or
changes from blank to an "L" to indicate locked, or
..................... ??

The indicators should work (be active) on whichever
workbook/worksheet is currently active.

I hope my question is clear.
Hopefully someone can help me out, before I'm totally bald.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Password Protect Indicators


in xl2003 you have a STANDARD protection bar.
use it..

put this in Thisworkbook module of an addin
(or any workbook you autoload)
it has an application level evetn handler.

to test make sure you fire up the workbook_open procedure
to instantiate the xlApp variable (and thus it's evetns)


Option Explicit

Dim WithEvents xlApp As Application

Private Sub Workbook_Open()
Set xlApp = Application
End Sub

Private Sub xlApp_SheetActivate(ByVal Sh As Object)
UpdateTB
End Sub

Private Sub xlApp_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
UpdateTB
End Sub

Sub UpdateTB()
Static cbr As CommandBar, ctlWKS As CommandBarButton, ctlWKB As
CommandBarButton
If cbr Is Nothing Then
Set cbr = Application.CommandBars("Protection")
Set ctlWKS = cbr.Controls(3)
Set ctlWKB = cbr.Controls(4)
End If
On Error Resume Next
ctlWKS.FaceId = IIf(ActiveSheet.ProtectContents, 351, 893)
ctlWKB.FaceId = IIf(ActiveWorkbook.ProtectStructure Or
ActiveWorkbook.ProtectWindows, 352, 894)

End Sub






--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Sorry, I should have specified.
I use Excel 2003.
I have the appropriate tool-bar icons open all the time.
The only way to "read" them is to put the cursor on them.
I'm looking for a "visual" read of the worksheet and workbook status.
I'm sure it must be possible.
Being a beginner, I just don't know where even to start.
thanks


"Bob Phillips" wrote:

Not so good if he still has 2000 or earlier.

--
HTH

Bob Phillips

"keepITcool" wrote in message
ft.com...
tried the protection toolbar?

--
keepITcool
www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Greetings:
I am constantly protecting and unprotecting worksheets and
workbooks. This was driving me totally nuts, so I made up
(with major input from user group) protect/unprotect toolbar
icons and put them in a custom tool bar.

Now I'm looking for a quick, easy to read visual aid to
indicate: A: password protect status of current (active)
worksheet B: Password protect status of current (active)
Workbook

What I'm thinking is perhaps toolbar icons that changes colour,
or changes from blank to an "L" to indicate locked, or
..................... ??

The indicators should work (be active) on whichever
workbook/worksheet is currently active.

I hope my question is clear.
Hopefully someone can help me out, before I'm totally bald.






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Password Protect Indicators

Thank You, keepITcool
Copied into Thisworkbook module.
Saved as .XLA
"selected" the add-in.

1: I have no idea what the following means:
Would you be so kind as to step me thru it?

to test make sure you fire up the workbook_open procedure
to instantiate the xlApp variable (and thus it's evetns)

2: Does the macro call up the Standard Protection Bar?
Or does it have to be open already?
Or does it create its own toolbar?

Sorry for the bother. My application ideas far out-stretch my capabilites,
although I am learning (slowly).



"keepITcool" wrote:


in xl2003 you have a STANDARD protection bar.
use it..

put this in Thisworkbook module of an addin
(or any workbook you autoload)
it has an application level evetn handler.

to test make sure you fire up the workbook_open procedure
to instantiate the xlApp variable (and thus it's evetns)


Option Explicit

Dim WithEvents xlApp As Application

Private Sub Workbook_Open()
Set xlApp = Application
End Sub

Private Sub xlApp_SheetActivate(ByVal Sh As Object)
UpdateTB
End Sub

Private Sub xlApp_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
UpdateTB
End Sub

Sub UpdateTB()
Static cbr As CommandBar, ctlWKS As CommandBarButton, ctlWKB As
CommandBarButton
If cbr Is Nothing Then
Set cbr = Application.CommandBars("Protection")
Set ctlWKS = cbr.Controls(3)
Set ctlWKB = cbr.Controls(4)
End If
On Error Resume Next
ctlWKS.FaceId = IIf(ActiveSheet.ProtectContents, 351, 893)
ctlWKB.FaceId = IIf(ActiveWorkbook.ProtectStructure Or
ActiveWorkbook.ProtectWindows, 352, 894)

End Sub






--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Sorry, I should have specified.
I use Excel 2003.
I have the appropriate tool-bar icons open all the time.
The only way to "read" them is to put the cursor on them.
I'm looking for a "visual" read of the worksheet and workbook status.
I'm sure it must be possible.
Being a beginner, I just don't know where even to start.
thanks


"Bob Phillips" wrote:

Not so good if he still has 2000 or earlier.

--
HTH

Bob Phillips

"keepITcool" wrote in message
ft.com...
tried the protection toolbar?

--
keepITcool
www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Greetings:
I am constantly protecting and unprotecting worksheets and
workbooks. This was driving me totally nuts, so I made up
(with major input from user group) protect/unprotect toolbar
icons and put them in a custom tool bar.

Now I'm looking for a quick, easy to read visual aid to
indicate: A: password protect status of current (active)
worksheet B: Password protect status of current (active)
Workbook

What I'm thinking is perhaps toolbar icons that changes colour,
or changes from blank to an "L" to indicate locked, or
..................... ??

The indicators should work (be active) on whichever
workbook/worksheet is currently active.

I hope my question is clear.
Hopefully someone can help me out, before I'm totally bald.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Password Protect Indicators

Greetings: Holidays are over and we're back at it, again.
I actually got part of your add-in to work - I don't know what my problem
was, before the holidays.

However:
1: The WorkSHEET part does not work - ie: does not change depending on
protected or not protected. ( The Work-Book portion works great)
2: Is it possible to slightly modify the add-in somehow, so that it will
actually "read" the work-sheet and work-book status, when first opened? At
present, I have to select a different sheet, in order for it to show the
status.

Thanks for now. Looking forward to your response.



"keepITcool" wrote:


in xl2003 you have a STANDARD protection bar.
use it..

put this in Thisworkbook module of an addin
(or any workbook you autoload)
it has an application level evetn handler.

to test make sure you fire up the workbook_open procedure
to instantiate the xlApp variable (and thus it's evetns)


Option Explicit

Dim WithEvents xlApp As Application

Private Sub Workbook_Open()
Set xlApp = Application
End Sub

Private Sub xlApp_SheetActivate(ByVal Sh As Object)
UpdateTB
End Sub

Private Sub xlApp_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
UpdateTB
End Sub

Sub UpdateTB()
Static cbr As CommandBar, ctlWKS As CommandBarButton, ctlWKB As
CommandBarButton
If cbr Is Nothing Then
Set cbr = Application.CommandBars("Protection")
Set ctlWKS = cbr.Controls(3)
Set ctlWKB = cbr.Controls(4)
End If
On Error Resume Next
ctlWKS.FaceId = IIf(ActiveSheet.ProtectContents, 351, 893)
ctlWKB.FaceId = IIf(ActiveWorkbook.ProtectStructure Or
ActiveWorkbook.ProtectWindows, 352, 894)

End Sub






--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Sorry, I should have specified.
I use Excel 2003.
I have the appropriate tool-bar icons open all the time.
The only way to "read" them is to put the cursor on them.
I'm looking for a "visual" read of the worksheet and workbook status.
I'm sure it must be possible.
Being a beginner, I just don't know where even to start.
thanks


"Bob Phillips" wrote:

Not so good if he still has 2000 or earlier.

--
HTH

Bob Phillips

"keepITcool" wrote in message
ft.com...
tried the protection toolbar?

--
keepITcool
www.XLsupport.com | keepITcool chello nl | amsterdam


BEEJAY wrote :

Greetings:
I am constantly protecting and unprotecting worksheets and
workbooks. This was driving me totally nuts, so I made up
(with major input from user group) protect/unprotect toolbar
icons and put them in a custom tool bar.

Now I'm looking for a quick, easy to read visual aid to
indicate: A: password protect status of current (active)
worksheet B: Password protect status of current (active)
Workbook

What I'm thinking is perhaps toolbar icons that changes colour,
or changes from blank to an "L" to indicate locked, or
..................... ??

The indicators should work (be active) on whichever
workbook/worksheet is currently active.

I hope my question is clear.
Hopefully someone can help me out, before I'm totally bald.




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
Password protect GeoSte New Users to Excel 1 January 8th 08 07:15 PM
VBA password protect brian thompson3001 via OfficeKB.com New Users to Excel 1 July 16th 06 07:23 PM
password protect Jim W via OfficeKB.com Excel Discussion (Misc queries) 2 July 24th 05 12:26 AM
comment indicators should feature lock or pw protect limiting acc. summer_rose Excel Worksheet Functions 1 December 3rd 04 07:02 AM
password protect jimmy Excel Programming 1 December 1st 03 04:22 PM


All times are GMT +1. The time now is 06:55 AM.

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"