could any one can help me with below error in VBA?
code:
Sub ShowTransientElementsold() Dim tec1 As TransientElementContainer Dim ele1 As Element Dim flags As MsdTransientFlags Dim eleEnum As ElementEnumerator Set eleEnum = ActiveModelReference.GraphicalElementCache.Scan Set tec1 = CreateTransientElementContainer1(Nothing, flags, msdView1 + msdView4, msdDrawingModeHilite) Do While eleEnum.MoveNext Set ele1 = eleEnum.Current tec1.AppendCopyOfElement ele1 Loop End Sub
error image :
i'm using V8i select series 2
regards,
vinoth
Thanks Jon.
In "About microstation" dialogue box, it is indicating select series 2 version 08.11.07.443.
as you suggested, let me reinstall, then i will update you.
Vinoth Joseph
ATKINS
Bangalore, India
Unknown said:In "About microstation" dialogue box, it is indicating select series 2 version 08.11.07.443
If MicroStation V8.5 was installed or re-installed, for whatever reason, after MicroStation V8i then the VBA libraries, which are Windows COM DLLs, will be recorded in the Windows Registry. It's the MicroStation GUID that is important: the GUID is the same for all editions, so it's the most recent installation that gets Windows' attention.
MicroStation is a Windows application, so when it asks Windows for the VBA DLLs that correspond to its GUID then it gets whatever Windows thinks is the current DLL.
Regards, Jon Summers LA Solutions