Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Protecting cells but maintaing data groups

I have a sheet that has data groups (Data | Group and Outline | Group) that
are used to minimise and maximise the rows shown. I want to protect some
rows from edit, but when I do so the user can no longer use the + and - signs
by the rows that can be expanded.

Is there any way of protecting cells without disabling the maximise/minimise
available via data grouping?

I can provide an example spreadsheet if it helps?

Thanks very much in advance for any help, Dan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Protecting cells but maintaing data groups

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
.EnableOutlining = True
'.EnableAutoFilter = True
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the setting under tools|Protection|protect sheet.)

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

DannyS wrote:

I have a sheet that has data groups (Data | Group and Outline | Group) that
are used to minimise and maximise the rows shown. I want to protect some
rows from edit, but when I do so the user can no longer use the + and - signs
by the rows that can be expanded.

Is there any way of protecting cells without disabling the maximise/minimise
available via data grouping?

I can provide an example spreadsheet if it helps?

Thanks very much in advance for any help, Dan


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Protecting cells but maintaing data groups


Thanks Dave, I appreciate the help.


"Dave Peterson" wrote:

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
.EnableOutlining = True
'.EnableAutoFilter = True
End With
End Sub

It needs to be reset each time you open the workbook. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the setting under tools|Protection|protect sheet.)

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

DannyS wrote:

I have a sheet that has data groups (Data | Group and Outline | Group) that
are used to minimise and maximise the rows shown. I want to protect some
rows from edit, but when I do so the user can no longer use the + and - signs
by the rows that can be expanded.

Is there any way of protecting cells without disabling the maximise/minimise
available via data grouping?

I can provide an example spreadsheet if it helps?

Thanks very much in advance for any help, Dan


--

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
Protecting Cells Luck3356 Excel Worksheet Functions 0 September 23rd 06 06:55 PM
Count Only Empty Cells AFTER Cells with Data David Excel Worksheet Functions 2 September 15th 06 06:05 PM
Help making a chart that doesn't graph cells without data? Filtration Guy Excel Discussion (Misc queries) 0 March 22nd 05 09:21 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


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