Thread: Command Button
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John Excel John Excel is offline
external usenet poster
 
Posts: 1
Default Command Button

I have a coomand button that should select a sheet and change the value in a
cell.
The code I have used is as follows, but it generates an error.

Private Sub CommandButton2_Click()
Sheets("Customer Profile").Select
Range("newused") = 1
End Sub

Please advise weere I am going wrong.

Thanks in advance of a favourable reply.
John