Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Intercept protection message

I would like to intercept the worksheet or workbook protection message and
run code to handle someone trying to change a protected worksheet. Is this
possible? Thanks
--
Jim at Eagle
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Intercept protection message

Unfortunately, I don't believe this is possible.

--

Vasant

"Jim at Eagle" wrote in message
...
I would like to intercept the worksheet or workbook protection message and
run code to handle someone trying to change a protected worksheet. Is this
possible? Thanks
--
Jim at Eagle



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Intercept protection message

The idea behind setting protection parameters is to let XL do the work
of protecting the workbook/sheet. If you'd rather do the work yourself,
turn off protection and trap the various Selection and/or
SelectionChange events. Do keep in mind that not all things that can be
changed trigger events. One example is changing the name of a
worksheet.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
= Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2005

In article ,
says...
I would like to intercept the worksheet or workbook protection message and
run code to handle someone trying to change a protected worksheet. Is this
possible? Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Intercept protection message

All worksheets are protected unless VBA code is operating. Movement between
sheets is controlled and functionality of sheets varies and is controlled. In
all but one case user presented with protection message is OK. But in one
case I would prefer to present my own message/promt. Ive worked around the
problem but the work around solution reveals the amount of control that the
program has. I would prefer the user feel at ease with using the worksheets
so that the original feel of a spreadsheet 20 years ago is still at play thus
taking advantage of creative minds and solutions.
--
Jim at Eagle


"Tushar Mehta" wrote:

The idea behind setting protection parameters is to let XL do the work
of protecting the workbook/sheet. If you'd rather do the work yourself,
turn off protection and trap the various Selection and/or
SelectionChange events. Do keep in mind that not all things that can be
changed trigger events. One example is changing the name of a
worksheet.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
= Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2005

In article ,
says...
I would like to intercept the worksheet or workbook protection message and
run code to handle someone trying to change a protected worksheet. Is this
possible? Thanks


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Intercept protection message

Maybe you could just stop the user from selecting a locked cell.

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi"
.EnableSelection = xlUnlockedCells
End With
End Sub

Excel won't remember these settings after you close it and reopen the workbook
(that's why it's in auto_open).

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

I'm not sure what message you're seeing from the workbook protection, though.

Jim at Eagle wrote:

I would like to intercept the worksheet or workbook protection message and
run code to handle someone trying to change a protected worksheet. Is this
possible? Thanks
--
Jim at Eagle


--

Dave Peterson
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
How do I force the y-intercept value Tony41 Excel Worksheet Functions 0 February 4th 10 06:14 PM
Hoping to disable Protection Warning message NFaye Excel Discussion (Misc queries) 4 December 10th 08 11:44 AM
Intercept and Indirect Graham Haughs Excel Worksheet Functions 2 February 19th 06 06:51 AM
Protection Message Fred Excel Programming 2 May 28th 04 02:51 AM
B = Y Intercept Alex A Excel Programming 1 January 24th 04 01:48 AM


All times are GMT +1. The time now is 04:02 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"