+ Reply to Thread
Results 1 to 6 of 6

Clear Cells Not Clear

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    75

    Clear Cells Not Clear

    Hi all,

    I am using .Clear to clear some cell values and while it appears to be working for the most part I am having a real problem with a common occurrence in my excel; I was wondering if anyone could help.

    To be more specific, my VBA is working fine (which is why I did not attach) and the contents (and formatting) of my cells are cleared when I check them, HOWEVER when I use Ctrl+Up or Down Excel is still going to the last cell of where the data was before it was cleared (This is my problem because I am using .End elsewhere and it is also going to the cell where data USED to be).

    When I highlight the range and actually press delete this issue no longer occurs (both manually doing Ctrl +Up/Down and when I run the VBA with .End).

    This is also a problem when I manually delete rows or cells (excel still selects cells/rows that used to contain data).

    I am all out of ideas so any help would figuring out why this is happening and how to fix it would be great.


    Thanks
    Last edited by prjt; 12-15-2015 at 03:01 PM.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Clear Cells Not Clear

    Maybe someone knows exactly what the cause is by just your description, but I would need an example sheet and instructions on exactly what you do to recreate the problem.

    ViewPic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    04-03-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    75

    Re: Clear Cells Not Clear

    RESOLVED MYSELF

    Annnddd...I feel dumb....


    Edited the wrong VBA....
    Last edited by prjt; 12-15-2015 at 03:01 PM.

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Clear Cells Not Clear

    You have code where you say = "" and that is the issue.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-03-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    75

    Re: Clear Cells Not Clear

    Haha yeah I noticed that I was editing code in Module 3 and not on the button. So I kept thinking I was using Cells().Clear, when it was actually still only using "".

    Sorry to have wasted time, but thanks for the help.

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Clear Cells Not Clear

    You didn't waste my time you just added to my knowledge base.

    Quote Originally Posted by prjt View Post
    Haha yeah I noticed that I was editing code in Module 3 and not on the button. So I kept thinking I was using Cells().Clear, when it was actually still only using "".

    Sorry to have wasted time, but thanks for the help.

+ 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. 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
  2. On Close Clear ComboBox1 - ListIndex -1 and Clear not working
    By Janc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2015, 10:10 AM
  3. Replies: 1
    Last Post: 06-21-2013, 04:05 AM
  4. [SOLVED] can someone help modify the clear command to only clear columns from A-G?
    By psunursingguy21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2013, 03:52 PM
  5. [SOLVED] clear userform does not clear all boxes
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-23-2013, 11:43 AM
  6. [SOLVED] Clear button, add warning dialogue box that asks: Are you sure you want to clear?
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-21-2012, 02:41 PM
  7. Button to clear sheet and automatic clear rows
    By sandbach in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2010, 02: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