anyone know why i get this error ?
1004Programmatic access to Visual Basic Project is not trusted
also if i just run [MsgBox Application.VBE.ActiveVBProject.References.Count] without error handling i get:
1004Method 'VBE' of object '_Application' failed
- BUT, only on the second and subsequent attempts...
from excel run:
VB Code:
Sub A1A1() On Error GoTo errMsg MsgBox Application.VBE.ActiveVBProject.References.Count errMsg: ActiveCell = Err.Number & Err.Description Err.Clear End Sub




Reply With Quote