Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TK TK is offline
external usenet poster
 
Posts: 177
Default Application.DisplayAlerts

Hi:

The following does not stop the alert message box if
an attempt is made to enter data into a protected cell.
Any advice as to how to stop the alerts would be greatly
appreciated.

Private Sub Worksheet_Activate()
Worksheets("Sheet1").Unprotect
Application.DisplayAlerts = False
Worksheets("Sheet1").Protect
End Sub

Thanks
TK


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Application.DisplayAlerts

TK, you cannot enter data into a proctected cell, locked cell,

By default all cells in excel are protected or locked, select the cells you
want to unlock and go to format, cells, protection and uncheck locked, the
go to tools, protection, and protect sheet, enter a password if you want,
now only the cells that you unlocked can be edited.

If you only need a few locked I would select them all first, Ctrl A, then
go to format, cells, protection and uncheck locked, then select the cells
you want to lock and go to format cells and check locked, the go to tools,
protection, and protect sheet, enter a password if you want, now the cells
that you locked can not be edited


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"TK" wrote in message
...
Hi:

The following does not stop the alert message box if
an attempt is made to enter data into a protected cell.
Any advice as to how to stop the alerts would be greatly
appreciated.

Private Sub Worksheet_Activate()
Worksheets("Sheet1").Unprotect
Application.DisplayAlerts = False
Worksheets("Sheet1").Protect
End Sub

Thanks
TK




  #3   Report Post  
Posted to microsoft.public.excel.programming
TK TK is offline
external usenet poster
 
Posts: 177
Default Application.DisplayAlerts

Thanks Paul:

I probably was not clear. Im familiar with the sheet
protecting procedure. Im trying to stop the caution
alert if a user tries to inadvertently enter data into a
protected cell. Obviously, they cannot enter data I just
do not want them to be reminded that they cannot.

Thanks
TK




"Paul B" wrote:

TK, you cannot enter data into a proctected cell, locked cell,

By default all cells in excel are protected or locked, select the cells you
want to unlock and go to format, cells, protection and uncheck locked, the
go to tools, protection, and protect sheet, enter a password if you want,
now only the cells that you unlocked can be edited.

If you only need a few locked I would select them all first, Ctrl A, then
go to format, cells, protection and uncheck locked, then select the cells
you want to lock and go to format cells and check locked, the go to tools,
protection, and protect sheet, enter a password if you want, now the cells
that you locked can not be edited


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"TK" wrote in message
...
Hi:

The following does not stop the alert message box if
an attempt is made to enter data into a protected cell.
Any advice as to how to stop the alerts would be greatly
appreciated.

Private Sub Worksheet_Activate()
Worksheets("Sheet1").Unprotect
Application.DisplayAlerts = False
Worksheets("Sheet1").Protect
End Sub

Thanks
TK





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Application.DisplayAlerts

TK, I don't think you can cut off that alert, how about not letting them
select the locked cells? If you are using excel 2002 or newer when you
protect the sheet uncheck select locked cells, if you have an early version
you can use a macro like this in the thisworkbook module

Private Sub Workbook_Open()
'will not let you select locked cells
'This is a setting that excel doesn't remember between closings,so have
'your workbook_open code do it each time:
With Worksheets("sheet1") 'change to your sheet name
..Activate
..EnableSelection = xlUnlockedCells

'change password here
..Protect Password:="123", Contents:=True, UserInterfaceOnly:=True
End With
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"TK" wrote in message
...
Thanks Paul:

I probably was not clear. I'm familiar with the sheet
protecting procedure. I'm trying to stop the caution
alert if a user tries to inadvertently enter data into a
protected cell. Obviously, they cannot enter data I just
do not want them to be reminded that they cannot.

Thanks
TK




"Paul B" wrote:

TK, you cannot enter data into a proctected cell, locked cell,

By default all cells in excel are protected or locked, select the cells
you
want to unlock and go to format, cells, protection and uncheck locked,
the
go to tools, protection, and protect sheet, enter a password if you want,
now only the cells that you unlocked can be edited.

If you only need a few locked I would select them all first, Ctrl A,
then
go to format, cells, protection and uncheck locked, then select the cells
you want to lock and go to format cells and check locked, the go to
tools,
protection, and protect sheet, enter a password if you want, now the
cells
that you locked can not be edited


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"TK" wrote in message
...
Hi:

The following does not stop the alert message box if
an attempt is made to enter data into a protected cell.
Any advice as to how to stop the alerts would be greatly
appreciated.

Private Sub Worksheet_Activate()
Worksheets("Sheet1").Unprotect
Application.DisplayAlerts = False
Worksheets("Sheet1").Protect
End Sub

Thanks
TK







  #5   Report Post  
Posted to microsoft.public.excel.programming
TK TK is offline
external usenet poster
 
Posts: 177
Default Application.DisplayAlerts

Thanks Paul:

I guess your right. My confusion came from the fact
that I was able to set displayAlerts = False when
changing pages using a macro. This I found you can do
via (Microsoft Library). Not so with the page selector.
I got that idea from post :
€śStop Message To Unprotect€ť 11/11/2004

Good Luck
TK


"Paul B" wrote:

TK, I don't think you can cut off that alert, how about not letting them
select the locked cells? If you are using excel 2002 or newer when you
protect the sheet uncheck select locked cells, if you have an early version
you can use a macro like this in the thisworkbook module

Private Sub Workbook_Open()
'will not let you select locked cells
'This is a setting that excel doesn't remember between closings,so have
'your workbook_open code do it each time:
With Worksheets("sheet1") 'change to your sheet name
..Activate
..EnableSelection = xlUnlockedCells

'change password here
..Protect Password:="123", Contents:=True, UserInterfaceOnly:=True
End With
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"TK" wrote in message
...
Thanks Paul:

I probably was not clear. I'm familiar with the sheet
protecting procedure. I'm trying to stop the caution
alert if a user tries to inadvertently enter data into a
protected cell. Obviously, they cannot enter data I just
do not want them to be reminded that they cannot.

Thanks
TK




"Paul B" wrote:

TK, you cannot enter data into a proctected cell, locked cell,

By default all cells in excel are protected or locked, select the cells
you
want to unlock and go to format, cells, protection and uncheck locked,
the
go to tools, protection, and protect sheet, enter a password if you want,
now only the cells that you unlocked can be edited.

If you only need a few locked I would select them all first, Ctrl A,
then
go to format, cells, protection and uncheck locked, then select the cells
you want to lock and go to format cells and check locked, the go to
tools,
protection, and protect sheet, enter a password if you want, now the
cells
that you locked can not be edited


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"TK" wrote in message
...
Hi:

The following does not stop the alert message box if
an attempt is made to enter data into a protected cell.
Any advice as to how to stop the alerts would be greatly
appreciated.

Private Sub Worksheet_Activate()
Worksheets("Sheet1").Unprotect
Application.DisplayAlerts = False
Worksheets("Sheet1").Protect
End Sub

Thanks
TK








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
Application.Displayalerts = value (is not working for me) [email protected] Excel Programming 3 December 18th 04 02:00 AM
application.displayalerts is not working will lam Excel Programming 2 April 30th 04 08:21 PM
Application.DisplayAlerts in IE scoobydeux Excel Programming 1 April 19th 04 01:28 AM
Application::DisplayAlerts not working Howard Dierking Excel Programming 2 February 11th 04 12:04 PM
application.displayalerts Erin[_5_] Excel Programming 1 December 4th 03 03:49 PM


All times are GMT +1. The time now is 11:09 AM.

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

About Us

"It's about Microsoft Excel"