IV 2009, windows XP sp2
I am having difficulty creating new views from a base view, this is the line of code I am a problem with:
Set oDrawView1 = oDoc.ActiveSheet.DrawingViews.AddProjectedView(oAddDrawingView2, oCoord1, kFromBaseDrawingViewStyle)
The error is “Run-time error ‘5’: Invalid procedure call or argument.”
It has something to do with the size of the view, if I scale the view larger it works OK.
It is the size and not the scale because other larger views with the same scale work OK.
I have tried checking the area of the view borders to see if there is any relationship, but I can’t find any similarity among the views and the size that they stop working? I have tried a number of parts and view sizes.
The work around at present is to change the scale of the view create the other views and change the scale back, however a permanent solution would be helpful.
Regards Malcolm