+ Reply to Thread
Results 1 to 3 of 3

Clear cell macro clears other cells not recorded

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Clear cell macro clears other cells not recorded

    Hi,

    Why does my Macro clear cells that I did not clear....
    Example -
    When I chose the "Clear" Button, it clears cells B34 and others.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Clear cell macro clears other cells not recorded

    Looks to me like your code is set up to clear everything, not just a specific cell.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Clear cell macro clears other cells not recorded

    Last line of the code has this.

    Please Login or Register  to view this content.
    Remove any code that clears the cells you don't want cleared.
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

+ 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] Macro for a button that clears cells adjacent to a checked checkbox
    By daveblair197 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2015, 07:40 AM
  2. Macro to Clear Contents of Cells when one cell = 0 %
    By BVT3030 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2013, 02:55 AM
  3. [SOLVED] Can I combine a simple "clear" macro with another that clears checkboxes?
    By Maezee in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-22-2013, 01:30 PM
  4. [SOLVED] Recorded Pivot Table Macro Doesn't Do What I Recorded!
    By diakonos1984 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2013, 11:01 AM
  5. Macro to find bold cells then clear adjacent cell
    By painterartist in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2011, 04:47 PM
  6. Macro that saves cell data to a separate spreadsheet and clears cells?
    By peepo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2010, 10:47 AM
  7. Replies: 3
    Last Post: 09-18-2008, 12:07 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