Ive got error in Ms Project 2007 profesional -macro-

M

Mocha

Helo everyone,
My name is Yogi. I want to ask about macro in Ms Project Profesional 2007.
This code below raise an eror "Automation error Unspecified Error"
......
Set MenuItem = MenuObject.Controls.Add(Type:=msoControlButton)
MenuItem.OnAction = "Warn"
.....

sub warn()
msgbox "Hellooo"
end sub

How can i solve this error?
My Objective is making my own menu then the menu will triger the warn
procedure.
thank you.
 
M

Mocha

Dear Rod,
I have followed ur advice but when i record macro to create menu from
view->toolbars -> customize... etc....
There is nothing happen (no macro recorded).
is there any suggestion? thank you..
 

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