Thread: Newbie Error
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
David David is offline
external usenet poster
 
Posts: 1,560
Default Newbie Error

Hello

I have created a Button on a worksheet called Button1

To test it before going any further, since I am so new, I have entered this
code in the worksheet

Private Sub Button1_Click()

MsgBox "you clicked here"

End Sub

An error message keeps coming up saying:
"The macro 'Project.xls!Button1_Click' cannot be found.

What am I missing?

David