Obtaining the application name using VBA

LaBelette

It means "The Weasel"
Local time
Today, 15:51
Joined
Mar 12, 2004
Messages
68
Hi!

I try to obtain the application name using VBA code. I know application.currentproject.name , but it gives me the 'file' name.
What I want is the title I've put in Tools> ApplicationName properties menu> General> Project name in the VBA window.
Anyone knows?
 
Last edited:
I dont understand what you're asking CurrentDb.Name ?!???


Edit:
Nevermind, you want the VBA Project Name
 
Last edited:
modest said:
Edit:
Nevermind, you want the VBA Project Name

Exactly, but what's the code to get it? :confused:
 
I'm not sure how to display it.

But this is how you set it:
Application.VBE.VBProjects("VBAProject").Name = NewName
where NewName is a string.

Just look into the VBE

..hope this helps,
modest
 
Solution!!!

Application.VBE.ActiveVBProject.Name works perfectly!!!

Thanks for putting me on this track!!!
 
No prob, the odd thing is that before I posted I tried
Application.VBE.ActiveVBProject.Name and it came back with an error on how I was using it.. :confused:
So I just posted what I knew worked.

Take care,
modest
 

Users who are viewing this thread

Back
Top Bottom