The following example uses the Saved property to return a Boolean value indicating whether or not the specified project has been saved in its current state.
Debug.Print Application.VBE.VBProjects(1).Saved