+ Reply to Thread
Results 1 to 2 of 2

Clearing cells in excel before close - vba

  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 - vba

    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?

    Please include code with response

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Clearing cells in excel before close - vba

    to clear columns A:J

    Please Login or Register  to view this content.
    Kind regards
    Leo

+ 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 cells in excel before close
    By ashley72788 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2015, 12:20 PM
  2. 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
  3. [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
  4. 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
  5. [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
  6. Replies: 0
    Last Post: 06-10-2005, 01:05 PM
  7. 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