Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Interupted Scrollarea

I have a worksheet that I am setting a variable ScrollArea, depending on how
much information is on the worksheet. This works fine. The problem is that
I have a couple of Check Boxes and a List Box in the field, and I do not want
their linked cells to be accessable.

The only reason for expanding the ScrollArea is so that I can see the
ListBox contents all at once, which I actually need.

I can move the linked cells out of the ScrollArea field, but this is a
painful solution, since these are referenced by multiple macros.

Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Interupted Scrollarea

Thanks for the quick response.

I just reconfirmed this. If I lock the linked cells, the Check Boxes
indicate that the sheet must be unprotected first. I need to use the Check
Boxes and List Box with the sheet protected.

"Ron de Bruin" wrote:

Why not lock the cells and protect your sheet ?

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
I have a worksheet that I am setting a variable ScrollArea, depending on how
much information is on the worksheet. This works fine. The problem is that
I have a couple of Check Boxes and a List Box in the field, and I do not want
their linked cells to be accessable.

The only reason for expanding the ScrollArea is so that I can see the
ListBox contents all at once, which I actually need.

I can move the linked cells out of the ScrollArea field, but this is a
painful solution, since these are referenced by multiple macros.

Thanks for any help.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Interupted Scrollarea

This did not work. I suspect that I am not making myself clear on this.

The issue is not with code running on the locked cells, since the applicable
macros unprotect the sheet before running any operations. The issue is with
the Check Box and linked cell, which will not work if the cell is locked and
the sheet is protected. If it were possible to split up the Scroll Area to
avoid the linked cells or make it so these could not be selected, that would
satisfy my requirements.

"Ron de Bruin" wrote:

Try this

You can protect your sheet with code like this
All code will run then on the protected cells

Copy this in the thisworkbook module and save /close/reopen the workbook

Private Sub Workbook_Open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
End With
End Sub




--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
Thanks for the quick response.

I just reconfirmed this. If I lock the linked cells, the Check Boxes
indicate that the sheet must be unprotected first. I need to use the Check
Boxes and List Box with the sheet protected.

"Ron de Bruin" wrote:

Why not lock the cells and protect your sheet ?

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
I have a worksheet that I am setting a variable ScrollArea, depending on how
much information is on the worksheet. This works fine. The problem is that
I have a couple of Check Boxes and a List Box in the field, and I do not want
their linked cells to be accessable.

The only reason for expanding the ScrollArea is so that I can see the
ListBox contents all at once, which I actually need.

I can move the linked cells out of the ScrollArea field, but this is a
painful solution, since these are referenced by multiple macros.

Thanks for any help.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Interupted Scrollarea

Why not lock the cells and protect your sheet ?

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
I have a worksheet that I am setting a variable ScrollArea, depending on how
much information is on the worksheet. This works fine. The problem is that
I have a couple of Check Boxes and a List Box in the field, and I do not want
their linked cells to be accessable.

The only reason for expanding the ScrollArea is so that I can see the
ListBox contents all at once, which I actually need.

I can move the linked cells out of the ScrollArea field, but this is a
painful solution, since these are referenced by multiple macros.

Thanks for any help.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Interupted Scrollarea

Try this

You can protect your sheet with code like this
All code will run then on the protected cells

Copy this in the thisworkbook module and save /close/reopen the workbook

Private Sub Workbook_Open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
End With
End Sub




--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
Thanks for the quick response.

I just reconfirmed this. If I lock the linked cells, the Check Boxes
indicate that the sheet must be unprotected first. I need to use the Check
Boxes and List Box with the sheet protected.

"Ron de Bruin" wrote:

Why not lock the cells and protect your sheet ?

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
I have a worksheet that I am setting a variable ScrollArea, depending on how
much information is on the worksheet. This works fine. The problem is that
I have a couple of Check Boxes and a List Box in the field, and I do not want
their linked cells to be accessable.

The only reason for expanding the ScrollArea is so that I can see the
ListBox contents all at once, which I actually need.

I can move the linked cells out of the ScrollArea field, but this is a
painful solution, since these are referenced by multiple macros.

Thanks for any help.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Interupted Scrollarea

hi ZipCurs

You can use the selection change event maybe
This example select the cell next to the cells in the Range("A1,C3,D5") if you select them

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Range("A1,C3,D5"), Target) Is Nothing Then
Target.Offset(0, 1).Select
End If
End Sub


--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
This did not work. I suspect that I am not making myself clear on this.

The issue is not with code running on the locked cells, since the applicable
macros unprotect the sheet before running any operations. The issue is with
the Check Box and linked cell, which will not work if the cell is locked and
the sheet is protected. If it were possible to split up the Scroll Area to
avoid the linked cells or make it so these could not be selected, that would
satisfy my requirements.

"Ron de Bruin" wrote:

Try this

You can protect your sheet with code like this
All code will run then on the protected cells

Copy this in the thisworkbook module and save /close/reopen the workbook

Private Sub Workbook_Open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
End With
End Sub




--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
Thanks for the quick response.

I just reconfirmed this. If I lock the linked cells, the Check Boxes
indicate that the sheet must be unprotected first. I need to use the Check
Boxes and List Box with the sheet protected.

"Ron de Bruin" wrote:

Why not lock the cells and protect your sheet ?

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
I have a worksheet that I am setting a variable ScrollArea, depending on how
much information is on the worksheet. This works fine. The problem is that
I have a couple of Check Boxes and a List Box in the field, and I do not want
their linked cells to be accessable.

The only reason for expanding the ScrollArea is so that I can see the
ListBox contents all at once, which I actually need.

I can move the linked cells out of the ScrollArea field, but this is a
painful solution, since these are referenced by multiple macros.

Thanks for any help.








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Interupted Scrollarea

Ron,

Thanks for your help. I did not try your last suggestion. Instead, I just
bit the bullet and moved the linked cells outside of the ScrollArea, which
although a bit of a pain worked just fine. Thanks again.

"Ron de Bruin" wrote:

hi ZipCurs

You can use the selection change event maybe
This example select the cell next to the cells in the Range("A1,C3,D5") if you select them

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Range("A1,C3,D5"), Target) Is Nothing Then
Target.Offset(0, 1).Select
End If
End Sub


--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
This did not work. I suspect that I am not making myself clear on this.

The issue is not with code running on the locked cells, since the applicable
macros unprotect the sheet before running any operations. The issue is with
the Check Box and linked cell, which will not work if the cell is locked and
the sheet is protected. If it were possible to split up the Scroll Area to
avoid the linked cells or make it so these could not be selected, that would
satisfy my requirements.

"Ron de Bruin" wrote:

Try this

You can protect your sheet with code like this
All code will run then on the protected cells

Copy this in the thisworkbook module and save /close/reopen the workbook

Private Sub Workbook_Open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
End With
End Sub




--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
Thanks for the quick response.

I just reconfirmed this. If I lock the linked cells, the Check Boxes
indicate that the sheet must be unprotected first. I need to use the Check
Boxes and List Box with the sheet protected.

"Ron de Bruin" wrote:

Why not lock the cells and protect your sheet ?

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ZipCurs" wrote in message ...
I have a worksheet that I am setting a variable ScrollArea, depending on how
much information is on the worksheet. This works fine. The problem is that
I have a couple of Check Boxes and a List Box in the field, and I do not want
their linked cells to be accessable.

The only reason for expanding the ScrollArea is so that I can see the
ListBox contents all at once, which I actually need.

I can move the linked cells out of the ScrollArea field, but this is a
painful solution, since these are referenced by multiple macros.

Thanks for any help.









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
ScrollArea Kevin Excel Discussion (Misc queries) 2 August 23rd 07 11:21 PM
Code has been interupted - error message Jeff Excel Discussion (Misc queries) 0 May 10th 07 03:23 PM
Macro 'Code execution has been interupted' error after print? Bluehair the Pirate Excel Programming 1 February 9th 06 06:19 PM
ScrollArea William Benson[_2_] Excel Programming 3 July 24th 05 02:52 AM
Code Execution has been interupted Rich Excel Discussion (Misc queries) 2 May 10th 05 12:52 PM


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