+ Reply to Thread
Results 1 to 2 of 2

Clearing cells in excel before close

  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Clearing cells in excel before close

    I am trying to clear columns A:J of a protected workbook before close. How do I do this?

    Is there also a way to allow people to paste information into column A:J to run a macro but not make any changes to the workbook? I am finding that I am having to fix the macro a lot because people are deleting and moving things they shouldn't be.

    Ideally, before close I'd like Columns A:J to clear and then upon open the user can paste data into columns A:J and click the Macro button, but from there they cannot delete or edit anything. Is that possible?

  2. #2
    Registered User
    Join Date
    06-17-2009
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    84

    Re: Clearing cells in excel before close

    You could password protect the worksheet and leave the columns A:J unlocked.
    This will prevent them from deleting things.

    Then what I do in many of my sheets is I clear the cells upon opening of the workbook.

    Using in VBA module.
    Auto_Open()

    Enter your Code

    End Sub

+ 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. Clearing option buttons based a on cells value where the cells value is not typed in.
    By Tanner2004 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2013, 03:56 PM
  2. [SOLVED] Close Excel IF two cells aren't equal
    By Jona2491 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2013, 10:52 AM
  3. Clearing data and assigning a new value upon close
    By Skyla157 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2013, 08:44 PM
  4. [SOLVED] Clearing cells content when opening up an Excel workbook
    By grumpyguppy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2012, 10:58 PM
  5. Clearing cells using VBA
    By StuntMonkeh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2008, 11:36 AM
  6. Clearing Cells
    By Andyd74 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2006, 12:35 PM
  7. Replies: 0
    Last Post: 06-10-2005, 01:05 PM
  8. Clearing Cells
    By mully in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 05-19-2005, 04:06 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