Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Deleting all cells after finished with Data

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi Team,

    I have a spreadsheet with lots of data that runs for 10 days. I would like to know if after the 10 days I can push a command buttoin and all the cells that contain data can be deleted. There is other data on the spreadsheet that I don't want deleted, like column/row headers etc

    Any quick ideas for someone not real familiar with vba or command buttons

    cheers Jason

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi
    There are various ways to determine what range needs to be cleared. I would simply choose the largest range expected and then add a bit to that...
    Simple syntax for a macro or command_click event on a command button would be as such:

    Range("A1:H65000").ClearContents

    Tom

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •