Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can try something like this
Public Sub ClearData() On Error Goto ErrorHandler: Application.Calculation = xlManual With Sheets("Sheet1") .Range("A1").ClearContents .Range("B2").ClearContents .Range("C3").ClearContents .Range("D4").ClearContents End With ErrorHandler: Application.Calculation = xlAutomatic End Sub Place this in a module and add a button from the forms toolbar. Select this macro when propted to do so and... -- HTH... Jim Thomlinson "sofodile" wrote: i created a field in which you can enter values in different spaces and it will calculate, these number accordingly.... how do i create a button to clear the values inputed, so that the "calculator" can be used again |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
create a button when pressed it will +1 to another field | Excel Discussion (Misc queries) | |||
How to make a field created a part of the Pivot Table Field List? | Excel Discussion (Misc queries) | |||
create a clear button | Excel Discussion (Misc queries) | |||
Create a button to Clear Cells | Excel Discussion (Misc queries) | |||
Create event triggered by Pivot Chart field button | Excel Programming |