For your original code.
![]()
Sub Clear() Dim c02 ' ' Clear Macro ' ' c02 = MsgBox("Are you sure you want to clear?", vbYesNo, "Clear") If c02 = vbYes Then Range("C7:E91").ClearContents End If End Sub
For your original code.
![]()
Sub Clear() Dim c02 ' ' Clear Macro ' ' c02 = MsgBox("Are you sure you want to clear?", vbYesNo, "Clear") If c02 = vbYes Then Range("C7:E91").ClearContents End If End Sub
Last edited by JapanDave; 05-21-2012 at 10:55 AM. Reason: Left out code
Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
I am the real 'Napster'
The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...
If you receive help please give thanks. Click the * in the bottom left hand corner.
snb's VBA Help Files
Thanks.... but when I click "Cancel"
It still clears away the data.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks