Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to allow insert hyperlink and grouping together under protecti

I tried to allow insert hyperlink and grouping together on a protected sheet,
I have tried to find seperate code to allow either of them, but when I tried
to put them together, it seemed really difficult.

THIS IS THE CODE TO ALLOW GROUPING/OUTLINING AND AUTOFILTER ON A PROTECTED
SHEET, AND THE PASSWORD IS SET AS EXCEL:

Private Sub Workbook_Open()
With Sheet32
..Protect Password:="EXCEL", UserInterfaceOnly:=True
.EnableOutlining = True
.EnableAutoFilter = True
End With
End Sub

AS BLOW IS MY ANSWER FROM HELP OF EXCEL TO ALLOW INSERTHYPERLINK ON A
PROTECTED SHEET,I have moved the part to mention just one single cell to
insert, because I want 3 whole column be inserted:
Sub ProtectionOptions()
If ActiveSheet.Protection.AllowInsertingHyperlinks = False Then
ActiveSheet.Protect AllowInsertingHyperlinks:=True
End If

MsgBox "Hyperlinks can be inserted on this protected worksheet."

End Sub


The point is when I put them together, the sheet can be inserted hyperlink,
grouping, protected,BUT the password doesn't work,the protection is very easy
to unprotect, just go to the data-protection-unprotected sheet.I have to
confess I never have experience of EXCEL PROGRAMMING, so could any maser help
me?

Thank you very much.

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
How 2 do expand/collapse Groupped Columns after worksheet protecti ToMMie Excel Discussion (Misc queries) 1 September 11th 08 03:37 AM
how would I insert a row after a grouping of duplicate names? cathit Excel Discussion (Misc queries) 1 April 23rd 08 10:32 PM
Insert Hyperlink Nigel Excel Programming 4 January 10th 06 01:31 AM
Insert hyperlink Todd Huttenstine Excel Programming 1 November 1st 04 12:26 AM
Why can't my macro use Auto Filter when I told the Sheet Protecti. KC Rippstein Excel Worksheet Functions 1 October 28th 04 06:13 PM


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