+ Reply to Thread
Results 1 to 9 of 9

Set up Button(s) To Clear and Unlock Specific Cell Ranges

  1. #1
    Registered User
    Join Date
    08-27-2018
    Location
    London
    MS-Off Ver
    office 2016
    Posts
    45

    Set up Button(s) To Clear and Unlock Specific Cell Ranges

    Hello


    How do I set up code to set up a button or buttons that clear the ranges (b9;h9, b12;h12, b19;h19,, b21;h21, b31;h31 the ones for passcode entries) at the end of the week and automatically unlock them so that the sheet is ready for the next week's entries

    The current manual way of accomplishing is rather intricate and not straight forward, clearing line by line

    please see file in dropbox /s/bn19sjy5pfb8bq7/sample%20sheet%201.xlsm?dl=0

    could not add as attachment

    Ideally the reset button(s) is to be in the other sheet called setup

    Thank You
    Last edited by diddy47; 04-06-2019 at 06:28 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    Please attach the file directly to this post, we don't need dropbox for that
    Click Go Advanced and then manage attachments, speaks for itsself
    Have tried recording a macro and then assign it to a button?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    08-27-2018
    Location
    London
    MS-Off Ver
    office 2016
    Posts
    45

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    Hello

    Please find the file attached
    Attached Files Attached Files

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    All very well, it's clearly a copied sheet from the file MAste v7 on your desktop.
    The links are invalid so it keeps prompted and of course you forgot to mention the worksheet's password.
    I don't feel like hacking so not much I can do for you now.

  5. #5
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    Hi,
    Like this with button on the setup page?
    Please Login or Register  to view this content.
    See attached.
    @ Keebellah
    No need to be a superhacker, just look @ the unprotected VBA code.
    Attached Files Attached Files
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    @dotchiejack: Thanks for pointing this out, I know that code; but my main pint is just trying to point out to the OP that when posting sample files try and think of external links as well as if sheets or workbooks are protected to mention this and especially AVOID it.

  7. #7
    Registered User
    Join Date
    08-27-2018
    Location
    London
    MS-Off Ver
    office 2016
    Posts
    45

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    hello

    Thank you so much, this solves everything I needed

    Thank you again

  8. #8
    Registered User
    Join Date
    08-27-2018
    Location
    London
    MS-Off Ver
    office 2016
    Posts
    45

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    sorry for the messy post

  9. #9
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Set up Button(s) To Clear and Unlock Specific Cell Ranges

    Thanks for the feedback.

+ 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. Need a command button to both Clear and Insert values in specific fields.
    By silverpetals in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2016, 04:00 PM
  2. Clear merged cell contents in comand button(clear all)
    By mohan_984 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-25-2015, 10:39 AM
  3. [SOLVED] Excel Cell button to Clear set Ranges
    By SHUTTEHFACE in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-12-2014, 02:56 PM
  4. [SOLVED] vba to clear contents in specific ranges on active sheet
    By blackburnsexcel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-01-2014, 09:35 AM
  5. [SOLVED] Command Button to clear specific cells
    By jamiegfinch in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2014, 09:31 PM
  6. Clear the Specific Range of Cells Using a Command Button
    By Abinaya in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2014, 05:50 AM
  7. Unlock a cell with a button
    By morteng in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-19-2009, 05:33 AM

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