+ Reply to Thread
Results 1 to 3 of 3

Delete Range that is "locked" by code allowing selection of 1 cell only.

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    West Coast, New Zealand
    MS-Off Ver
    2007
    Posts
    15

    Delete Range that is "locked" by code allowing selection of 1 cell only.

    Greetings. I have a range of Cells within a Private Sub that is "Locked" by allowing only one cell in that range to be activated at any time.

    Please Login or Register  to view this content.
    I can not "reset" Range("B24:DS75") by deleting the data entered due to this code. I still require only one cell to be selected for input but need to delete all data entered into the range at completion of the "Job", so fresh data can be entered.

    Can someone help with a "workaround" for this?

    Thank You.
    Last edited by jeffreybrown; 04-17-2017 at 05:32 PM. Reason: Please use code tags!

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Delete Range that is "locked" by code allowing selection of 1 cell only.

    maybe you just want to turn off and on your events like this so the event is not triggered.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-08-2015
    Location
    West Coast, New Zealand
    MS-Off Ver
    2007
    Posts
    15

    Re: Delete Range that is "locked" by code allowing selection of 1 cell only.

    Thanks Scottiex. Modified to .ClearContents for my needs. Thanks again.

+ 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. [SOLVED] Code Clean-Up: Delete "False" worksheet created when "Cancel" is chosen in Input Box
    By Kenny Blackwell in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-31-2015, 10:00 AM
  2. [SOLVED] Does a vba code "Range("A4")" change if I delete row 2?
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2015, 11:48 AM
  3. [SOLVED] Code that copies row of data to another sheet based on text "Complete"/"Delete"
    By Dremzy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-20-2014, 05:51 PM
  4. Replies: 2
    Last Post: 04-20-2014, 11:18 AM
  5. How unlock or delete "locked for editing" files
    By bill.k in forum Excel General
    Replies: 0
    Last Post: 10-04-2012, 08:22 AM
  6. Macro Error with code "Range("A65536").End(xlUp).EntireRow.Insert"
    By lukasj13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2010, 08:48 PM
  7. VBA Code for deleting rows where cell in column a states "delete row"
    By tnfire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2009, 06:17 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