+ Reply to Thread
Results 1 to 3 of 3

bug on the macro coded sheet, a protected sheet, every time i made an action i wanted

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    metro manila, philippines
    MS-Off Ver
    Excel 2007 & 10
    Posts
    43

    bug on the macro coded sheet, a protected sheet, every time i made an action i wanted

    Hi ExcelForum members.

    I am working with a workbook that has a password protect sheet but some of the cells there are unlock so that the user may input the require data to fill in. I assign control to insert a row (e.g control + q, to insert a row for a row where a select a cell). My code bug everytime i do that if it was under a protect-sheet.

    For a clear view of what i'm doing, here's my file.

    Attachment 299220

    In that sheet, the user may fill-in data in column date, particulars, invoice and so forth but not in the cells under column 'account title'. The user is required only to select account number on the column 'acct no'. If the user select, the account title appear.

    The password there is "dondon".

    Try to run without protection and with protection and select on the cell on the column 'date' and hit 'ctrl + q'.



    Please help me


    Thanks in advance ExcelForum members ^_^
    Last edited by dondonordas; 02-22-2014 at 06:50 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: bug on the macro coded sheet, a protected sheet, every time i made an action i wanted

    Hi, dondonordas,

    maybe just add the unprotecting of the sheet before actually starting the code and protect it after the macro?
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    02-15-2014
    Location
    metro manila, philippines
    MS-Off Ver
    Excel 2007 & 10
    Posts
    43

    Re: bug on the macro coded sheet, a protected sheet, every time i made an action i wanted

    It works!

    Cheers ^_^

+ 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. Replies: 1
    Last Post: 02-22-2014, 01:28 AM
  2. Replies: 2
    Last Post: 01-18-2014, 10:54 PM
  3. Macro Button in Sheet 1 performs action in Sheet 2
    By cymraeg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2013, 06:21 PM
  4. [SOLVED] To Run Macro in A Protected Sheet (Data in the Sheet will be Moved)
    By kittu55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2012, 10:51 PM
  5. [SOLVED] Repeated action - shorten macro - copy from each sheet to summary sheet
    By sans in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-07-2012, 11:37 AM

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