How can I execute a code, in VB, that has already altered?

T

Taha

I started off writing a code for in VB application. However, I decided to
change it a bit but I was unable to do so. In other words, the first code is
executed instead of the new "altered" one. I wonder wheather this has
something to do with the setting of the module that I've been using!
 
J

John

Taha said:
I started off writing a code for in VB application. However, I decided to
change it a bit but I was unable to do so. In other words, the first code is
executed instead of the new "altered" one. I wonder wheather this has
something to do with the setting of the module that I've been using!

Taha,
Are you talking about VB or VBA? There is a difference. Visual Basic is
a stand alone version that does not need a host application, (e.g.
Project, Word, etc.), open to execute. Visual Basic for Applications on
the other hand is code that resides within an application.

If it is truly VB, then you have posted to the wrong newsgroup. You need
to post to a newsgroup that deals with VB6 or VB.net.

However, if what you have is VBA and it is written for MS Project, then
the most likely problem is that one version resides in your Global and
the other version resides in a specific project. When you open the code
window for the version you want, pay close attention to the caption line
at the top of the window. It will either say
Microsoft Visual Basic - Global.mpt - [module name]
or it will say,
Microsoft Visual Basic - [file name] - [module name]

Once you identify the correct version, you can move it to the Global or
to a specific file by using the Organizer. Note that the Organizer shows
Module names, not macro names. I recommend you keep your often used
macros in the Global so they are available for any project file.

Hope this helps.
John
Project MVP
 

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