I believe this code would be better without the last else statement, this will result in many message boxed is there are more planes than just the default plane.
For Each oWorkPlane In ThisDoc.Document.ComponentDefinition.WorkPlanes
Select Case oWorkPlane.Name
Case "YZ Plane - RIGHT", "XZ Plane - TOP", "XY Plane - FRONT"
oWorkPlane.Visible = False
Case "YZ Plane"
oWorkPlane.Name = "YZ Plane - RIGHT"
Case "XZ Plane"
oWorkPlane.Name = "XZ Plane - TOP"
Case "XY Plane"
oWorkPlane.Name = "XY Plane - FRONT"
End Select
Next
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2