Posts by Chewy73

    Re: Locking worksheet


    Just not sure I need this line

    Code
    Me.EnableSelection = xlNoSelection


    Thanks again for pointing me in the right direction


    :sing:

    Re: Locking worksheet


    Thanks Think I have it working now


    Code
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Address = "$J$83" Then
                Me.Unprotect "Password"
                
        Me.Protect "Password", DrawingObjects:=True, Contents:=True, Scenarios:=True
        Me.EnableSelection = xlNoSelection
        End If
    End Sub

    Re: Locking worksheet


    Thanks for that but it dosent seem to be working, the worksheet has a level of protection on it to start with to prevent formulas being altered so only giving the user acess to certian cells. what I need to achive is when say cell K2 has the word Approved in it then the sheet unlocks and then re-locks but making all cells and object unselectable.. Not sure if that makes sense

    I want to lock the worksheet when text appears in a specific cell,
    kind of like a lock out once final approval has been made to prevent any other user altering the appoved ammout.
    Can anyone help

    Hi quick question about the code below. the code was posted by Barry (thanks it works great) I would like the code to ignore 6 specific pages is this possible and if so can the code be written in such away that it can be used in other actions


    Matt
    iwrk4dedpr
    [LIST]http://www.ozgrid.com/forum/showthread.php?t=23887



    Hi I am looking to insert a line int this code so that I can hide the Template sheet rarther than having to call it "Template Do Not Use" please could somebody advise brand new to Macros but seem to be doing ok just glad I found this forum...


    Matt


    Code
    [/SIZE]Public Sub SheetCopy()Dim Sh As Worksheet, TemplateSh As WorksheetDim ShNum As Integer, HighestNum As IntegerDim SheetCoreName As StringSheetCoreName = "REQ - "Set TemplateSh = Sheets("Template Do Not Use")For Each Sh In WorksheetsIf InStr(1, Sh.Name, SheetCoreName) = 1 ThenShNum = Val(Right(Sh.Name, Len(Sh.Name) - Len(SheetCoreName)))If ShNum > HighestNum Then HighestNum = ShNumEnd IfNext ShTemplateSh.Copy after:=Sheets(Sheets.Count)ActiveSheet.Visible = xlSheetVisibleActiveSheet.Name = SheetCoreName & HighestNum + 1End Sub[size=14]

    [/SIZE]