+ Reply to Thread
Results 1 to 2 of 2

Allow font color change and such - protected sheet

Hybrid View

jw01 Allow font color change and... 04-12-2013, 03:12 PM
dilipandey Re: Allow font color change... 04-13-2013, 10:27 AM
  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Allow font color change and such - protected sheet

    i have the following code in "thisworkbook"

    i want to allow users to be able to change the font color and all as it is restricted at the moment. pls help. thx u

    Private Sub Workbook_Open()
    
    For c = 1 To Sheets.Count
                   With Worksheets(c)
            .Protect Password:="analyst", userinterfaceonly:=True
            .EnableOutlining = True
        End With
    Next c
    
    End Sub

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Allow font color change and such - protected sheet

    HI jw01,

    You can allow cell formatting while sheet protection, see below code

        ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
            , AllowFormattingCells:=True

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1