Results 1 to 5 of 5

Disable selection on open?!

Threaded View

jameztown Disable selection on open?! 01-08-2012, 07:49 PM
im_kaushal Re: Disable selection on... 01-09-2012, 04:37 AM
jameztown Re: Disable selection on... 01-09-2012, 10:33 AM
im_kaushal Re: Disable selection on... 01-10-2012, 01:11 AM
jameztown Re: Disable selection on... 01-10-2012, 02:17 PM
  1. #1
    Registered User
    Join Date
    05-24-2010
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    24

    Disable selection on open?!

    I have a timesheet that consists of several locked and unlocked cells. Upon open, I have selections disabled until a button is clicked. Everything works perfectly except one issue. Upon opening, I also want one merged cell to be unlocked (B52:G53). Can this function be added to this?:

    Private Sub Workbook_Open()
    
        With Sheets("TIMECARD")
            .Protect "password"
            .EnableSelection = xlNoSelection
        End With
         
        With Application
             'disable the ESC key
            .EnableCancelKey = xlDisabled
            .ScreenUpdating = False
             
            Call UnhideSheets
             
            .ScreenUpdating = True
             're-enable ESC key
            .EnableCancelKey = xlInterrupt
        End With
         
    End Sub
    Thanks very much for your feedback!
    Last edited by jameztown; 01-10-2012 at 02:17 PM.

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