Macro deletion

P

Patricia D

I am brand new at macros. I created one for practice, it worked, then I
deleted it at excel tools>macro>delete. I went thru the workbook and deleted
all the modules, so I don't get the enable/disable warning. But now when I
try to create in VBA and hit F5 I get a Macro message box asking for the name
of the macro, and of course there is no name to click. Can I get rid of this
and get back to square one? Thanks
 
J

Jacob Skaria

You code should be within the Sub/End Sub as below..

Sub MyTestMacro()

'place your code here
MsgBox "My new macro"


End Sub

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top