Results 1 to 3 of 3

Need to rewrite protect code so that it will work with a hidden sheet.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2003
    Posts
    183

    Need to rewrite protect code so that it will work with a hidden sheet.

    I need this code below to work in a macro on a hidden sheet.. FYI the sheet name is "Closed".
    Columns("A:CO").Select
        Selection.Locked = True
        Selection.FormulaHidden = False
        ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
    Maybe something like:?

    sheets("Closed").columns("A:CO").Locked=True.FormulaHidden=False
    Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
    Just a guess.

    Thanks for the help!
    Last edited by mrgillus; 08-28-2009 at 11:23 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