Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto Clear Cells
I have been given the task of creating a simple office sheet that would serve as an In/Out Board. We want to have certain cells be cleared everyday so that the comment areas are fresh to add notes to. How specifically can I add a macro that will automaticall clear a set of cells at a certain time? The cells can only be cleared once a day and not every time the file opens
Please help Pete |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto Clear Cells
Pete,
An example : Sub ClearCells() Worksheets("Sheet1").Range("D2").ClearContents Worksheets("Sheet1").Range("H4:J6").ClearContents End Sub Replace the sheetnames en the cellranges to the values you need and run the macro whenever you need it to run. -- Regards, Auk Ales * Please reply to this newsgroup only * * I will not react on unsolicited e-mails * "PeteS" wrote in message ... I have been given the task of creating a simple office sheet that would serve as an In/Out Board. We want to have certain cells be cleared everyday so that the comment areas are fresh to add notes to. How specifically can I add a macro that will automaticall clear a set of cells at a certain time? The cells can only be cleared once a day and not every time the file opens. Please help! Pete |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Auto Clear Cells
Pete
To go with Auk's code you can visit Chip Pearson's site and learn how to run the code at a specific time. http://www.cpearson.com/excel/ontime.htm Gord Dibben Excel MVP On Tue, 10 Feb 2004 23:33:07 +0100, "A.W.J. Ales" wrote: Pete, An example : Sub ClearCells() Worksheets("Sheet1").Range("D2").ClearContents Worksheets("Sheet1").Range("H4:J6").ClearContents End Sub Replace the sheetnames en the cellranges to the values you need and run the macro whenever you need it to run. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Reposting - Why would this not Clear Cells | Excel Discussion (Misc queries) | |||
Clear Auto Filter on Close (or open) | Excel Discussion (Misc queries) | |||
Cells.Clear | Excel Discussion (Misc queries) | |||
Clear Cells | Excel Discussion (Misc queries) | |||
Auto clear when qualification is met | Excel Discussion (Misc queries) |