The ActiveVBProject property returns the project that is selected in the Project window or the project in which the components are selected. In the latter case, the project itself isn't necessarily selected. Whether or not the project is explicitly selected, there is always an active project. This name, description of the VB Project can be set as follows:
Sub Get_The_PRoject_Name()Application.VBE.ActiveVBProject.name = "MyVBAProject"
Application.VBE.ActiveVBProject.Description = "This is My Personal VBA Project"
End Sub
Apparently, not in Outlook VBA.
ReplyDelete