+ Reply to Thread
Results 1 to 24 of 24

Macro code that runs despite specific cells being locked.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: Macro code that runs despite specific cells being locked.

    Sub fullmacsro()
        
    Worksheets("1 Invoice Notes").Unprotect Password:="button"
    
    Worksheets("2 Invoice Print").Unprotect Password:="button"
    
    Worksheets("4 Register").Unprotect Password:="button"
    
        FillCells
        TodaysDate
        PostToRegister
        SavePdf
        SaveXLMFile
        NextInvoice
        
        
        
    Worksheets("1 Invoice Notes").Protect Password:="button"
    
    Worksheets("2 Invoice Print").Protect Password:="button"
    
    Worksheets("4 Register").Protect Password:="button"
    
    
    
    End Sub
    here is my dealio

    thanks

  2. #2
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    262

    Re: Macro code that runs despite specific cells being locked.

    I'll assume yes, but are the spaces in your sheet names actually present in your sheet names?

  3. #3
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: Macro code that runs despite specific cells being locked.

    Thanks for your reply
    Yes they are

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using Worksheet_SelectionChange, so code only runs when specific cells are changed
    By Kristine T. in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-20-2015, 08:49 PM
  2. Can i avoid Locked Cells Using this Code getting Updated How can i edit this code
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-01-2014, 03:27 AM
  3. Cell/Range locked after automated resize code runs under Worksheet_Change tab
    By element6 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2014, 06:20 PM
  4. [SOLVED] Macro only runs on specific sheet name
    By cymraeg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2013, 03:43 PM
  5. Error when running macro at a specific time: only runs once
    By Axildoofay in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2013, 05:54 AM
  6. Macro runs when i click on specific cell
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2009, 05:28 AM
  7. Code runs only if a specific page of the MultiPage is selected
    By Gabor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2009, 07:18 PM

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