Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Protect cells but not Group function

Does anyone know how to protect a worksheet and still have access to the
"Group" filter functionality? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Protect cells but not Group function

Unless you protect the sheet in a special manner, the dropdowns for your
autofilter won't work on that protected worksheet.

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. (excel doesn't remember
it after closing the workbook.)

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

======
If you meant Grouping from Data|Group, use .enableoutlining.

Please help James wrote:

Does anyone know how to protect a worksheet and still have access to the
"Group" filter functionality? Thanks!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Protect cells but not Group function

Dave, I still get the error message of "You cannot use this command on a
protected sheet"....any suggestions?

"Dave Peterson" wrote:

Unless you protect the sheet in a special manner, the dropdowns for your
autofilter won't work on that protected worksheet.

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. (excel doesn't remember
it after closing the workbook.)

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

======
If you meant Grouping from Data|Group, use .enableoutlining.

Please help James wrote:

Does anyone know how to protect a worksheet and still have access to the
"Group" filter functionality? Thanks!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Protect cells but not Group function

Did you allow macros to run when you opened the workbook?
Did you change the worksheet name?
Did you change the password?





Please help James wrote:

Dave, I still get the error message of "You cannot use this command on a
protected sheet"....any suggestions?

"Dave Peterson" wrote:

Unless you protect the sheet in a special manner, the dropdowns for your
autofilter won't work on that protected worksheet.

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. (excel doesn't remember
it after closing the workbook.)

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

======
If you meant Grouping from Data|Group, use .enableoutlining.

Please help James wrote:

Does anyone know how to protect a worksheet and still have access to the
"Group" filter functionality? Thanks!


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Protect cells but not Group function

Yes, I allowed macros to run. I changed the worksheet name to match yours
"worksheet1". hmmm, Dave, the code you gave me would allow the "Group &
Ouline" function to work with the "protect sheet" function on (so that I can
protect cells from being written on)?

"Dave Peterson" wrote:

Did you allow macros to run when you opened the workbook?
Did you change the worksheet name?
Did you change the password?





Please help James wrote:

Dave, I still get the error message of "You cannot use this command on a
protected sheet"....any suggestions?

"Dave Peterson" wrote:

Unless you protect the sheet in a special manner, the dropdowns for your
autofilter won't work on that protected worksheet.

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. (excel doesn't remember
it after closing the workbook.)

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

======
If you meant Grouping from Data|Group, use .enableoutlining.

Please help James wrote:

Does anyone know how to protect a worksheet and still have access to the
"Group" filter functionality? Thanks!

--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Protect cells but not Group function

Dave, do you turn on the protection after you enter the code?

"Please help James" wrote:

Yes, I allowed macros to run. I changed the worksheet name to match yours
"worksheet1". hmmm, Dave, the code you gave me would allow the "Group &
Ouline" function to work with the "protect sheet" function on (so that I can
protect cells from being written on)?

"Dave Peterson" wrote:

Did you allow macros to run when you opened the workbook?
Did you change the worksheet name?
Did you change the password?





Please help James wrote:

Dave, I still get the error message of "You cannot use this command on a
protected sheet"....any suggestions?

"Dave Peterson" wrote:

Unless you protect the sheet in a special manner, the dropdowns for your
autofilter won't work on that protected worksheet.

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. (excel doesn't remember
it after closing the workbook.)

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

======
If you meant Grouping from Data|Group, use .enableoutlining.

Please help James wrote:

Does anyone know how to protect a worksheet and still have access to the
"Group" filter functionality? Thanks!

--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Protect cells but not Group function

I keep trying this and it just isn't working. Can someone break this down
into idiot language for me?

"Please help James" wrote:

Does anyone know how to protect a worksheet and still have access to the
"Group" filter functionality? Thanks!

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
Calculating only non-empty cells... Jay Excel Worksheet Functions 9 September 22nd 06 03:20 AM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
How do I protect sheet, but allow "group" function to work dwsmha Excel Discussion (Misc queries) 1 August 29th 05 11:25 PM
Using SUM function with #N/A in some cells Jeeper Excel Worksheet Functions 5 June 10th 05 06:28 AM
How do I protect cells against only the "Delete" function? Kev Nurse Excel Discussion (Misc queries) 1 February 17th 05 03:09 AM


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