ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete Cell (https://www.excelbanter.com/excel-programming/356467-delete-cell.html)

cityfc

Delete Cell
 
hi

I have a button in "dm1" worksheet and when pressed i want it to clear the
contents in worksheet "input screen" d38 and e38

thanks in advance

Paul B

Delete Cell
 
cityfc, try this,
Sheets("input screen").Range("D38,E38").ClearContents

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"cityfc" wrote in message
...
hi

I have a button in "dm1" worksheet and when pressed i want it to clear the
contents in worksheet "input screen" d38 and e38

thanks in advance




Norman Jones

Delete Cell
 
Hi Cityfc,

Try:

'=============
Private Sub CommandButton1_Click()
Worksheets("Input Screen").Range("D38:E38").ClearContents
End Sub
'<<=============


---
Regards,
Norman



"cityfc" wrote in message
...
hi

I have a button in "dm1" worksheet and when pressed i want it to clear the
contents in worksheet "input screen" d38 and e38

thanks in advance




cityfc

Delete Cell
 
thanks for your help

cityfc

"Norman Jones" wrote:

Hi Cityfc,

Try:

'=============
Private Sub CommandButton1_Click()
Worksheets("Input Screen").Range("D38:E38").ClearContents
End Sub
'<<=============


---
Regards,
Norman



"cityfc" wrote in message
...
hi

I have a button in "dm1" worksheet and when pressed i want it to clear the
contents in worksheet "input screen" d38 and e38

thanks in advance






All times are GMT +1. The time now is 07:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com