Results 1 to 2 of 2

Protect a Sheet with Password and autofilter options

Threaded View

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    60

    Post Protect a Sheet with Password and autofilter options

    Hi Guys,
    I want to protect a sheet with password using a VBA code.
    It was like this
    ActiveSheet.Protect "password"

    Later i wanted to enable the autofilter options and allow formatting columns but the below code is not working.

    ActiveSheet.Protect "password" DrawingObjects:=True, _
    Contents:=True, Scenarios:=True, _
    AllowFormattingColumns:=True, AllowFiltering:=True

    Can anyone help me on this please .

    Regards,
    Devpp...
    Last edited by devpp; 06-11-2013 at 07:26 AM.

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