Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Bug when Sheet Protection Activated

I have command buttons on every sheet relating to every sheet
When I activate protection on my sheet called "Totals" and when I click on
the "Totals" from any of the other sheets i receive a debug message.

When protection is off, the command buttons function normally
The code reads
Private Sub CommandButton16_Click()
'
Application.Goto Reference:="Totals"
End Sub

I would be very grateful for any ideas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Bug when Sheet Protection Activated

Hello
Depending on your Excel version, you may allow for selecting locked cells
and selecting unlocked cells.
This option is available from Tools|Protection|Protect Worksheet.

HTH
Cordially
Pascal

"Art Caragh" a écrit dans le message
de news: ...
I have command buttons on every sheet relating to every sheet
When I activate protection on my sheet called "Totals" and when I click on
the "Totals" from any of the other sheets i receive a debug message.

When protection is off, the command buttons function normally
The code reads
Private Sub CommandButton16_Click()
'
Application.Goto Reference:="Totals"
End Sub

I would be very grateful for any ideas



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Bug when Sheet Protection Activated

Thanks Papou,
I am using Excel 2003 and I have already unlocked the column where the
command buttons are located.

have you any other ideas

"papou" wrote:

Hello
Depending on your Excel version, you may allow for selecting locked cells
and selecting unlocked cells.
This option is available from Tools|Protection|Protect Worksheet.

HTH
Cordially
Pascal

"Art Caragh" a écrit dans le message
de news: ...
I have command buttons on every sheet relating to every sheet
When I activate protection on my sheet called "Totals" and when I click on
the "Totals" from any of the other sheets i receive a debug message.

When protection is off, the command buttons function normally
The code reads
Private Sub CommandButton16_Click()
'
Application.Goto Reference:="Totals"
End Sub

I would be very grateful for any ideas




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Bug when Sheet Protection Activated

Papou,

I have discovered the error. When the macro in the command button executed
to goto "Totals", the active cell was locked and I have managed to unlock it
now and the command button now executes as normal.

Thank you so much for your help and valuable time.

Warm Regards

Art Caragh

"papou" wrote:

Art
I did not mean unlock cells from the Format|Cell option.
While activating protection on a worksheet from the Tools|Protection, you
may allow cells selection in the protection options available.
Could you post the error message you receive?

Cordially
Pascal

"Art Caragh" a écrit dans le message
de news: ...
Thanks Papou,
I am using Excel 2003 and I have already unlocked the column where the
command buttons are located.

have you any other ideas

"papou" wrote:

Hello
Depending on your Excel version, you may allow for selecting locked cells
and selecting unlocked cells.
This option is available from Tools|Protection|Protect Worksheet.

HTH
Cordially
Pascal

"Art Caragh" a écrit dans le
message
de news:
...
I have command buttons on every sheet relating to every sheet
When I activate protection on my sheet called "Totals" and when I click
on
the "Totals" from any of the other sheets i receive a debug message.

When protection is off, the command buttons function normally
The code reads
Private Sub CommandButton16_Click()
'
Application.Goto Reference:="Totals"
End Sub

I would be very grateful for any ideas






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
Macro to run when sheet activated Gary Keramidas Excel Programming 0 December 13th 06 09:27 PM
Macro to run when sheet activated Dave Miller Excel Programming 1 December 13th 06 09:26 PM
userform open when sheet activated ADK Excel Programming 11 September 7th 06 06:36 PM
Load VBA on Activated Sheet RigasMinho Excel Programming 2 July 25th 06 04:20 PM
Error sheet when macro's are not activated jgmiddel Excel Programming 0 March 22nd 06 09:28 PM


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

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"