Solved

fiirst of the month clear cells

Posted on 2011-02-27
5
716 Views
Last Modified: 2012-06-21
I need a code that if it the first of the month then clear the cells, but only on a button click
0
Comment
Question by:joshuajoseph09
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
TinTombStone earned 500 total points
Comment Utility
This clears the entire sheet
If you just need to clear a particular range then change it to

Range("A1:D100").Clear

Assign this to a button or the QAT dpending which version you are using

Sub ClearCellsOnFirst()

    If Day(Date) = 1 Then
        Cells.Clear
    End If

End Sub
0
 
LVL 45

Expert Comment

by:patrickab
Comment Utility
What is QAT ?
0
 
LVL 6

Expert Comment

by:TinTombStone
Comment Utility
In Office 2007/2010 it is the Quick Access Toolbar
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now