+ Reply to Thread
Results 1 to 4 of 4

Select locked cells resets on exit

Hybrid View

tichvra Select locked cells resets on... 06-18-2012, 10:42 AM
ChemistB Re: Select locked cells... 06-18-2012, 11:01 AM
tichvra Re: Select locked cells... 06-18-2012, 12:47 PM
tichvra Re: Select locked cells... 06-21-2012, 01:07 PM
  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    Croatia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Select locked cells resets on exit

    I use macro for buttons wich on click executes some calculations:

    Sub Button1_Click()
    Sheets("Sheet_1").Unprotect Password:=""
    ......
    Sheets("Sheet_1").Protect Password:="", UserInterFaceOnly:=True, AllowFormattingCells:=True, Contents:=True
    End Sub

    I have 3 buttons in Sheet_1 and 2 buttons in Sheet_2. All of them have this lines of code at the beginnig and the end of macro.
    Formating of unlocked cells must be possible.

    Thanks for your help.

  2. #2
    Registered User
    Join Date
    05-28-2012
    Location
    Croatia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Select locked cells resets on exit

    I put this line of code to module and problem solved

    Private Sub Workbook_Open()
    Dim wSheet As Worksheet
    For Each wSheet In Worksheets
    wSheet.Protect Password:="", _
    UserInterFaceOnly:=True
    Next wSheet
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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