AnsweredAssumed Answered

Property manager page: error 91

Question asked by Frederik Van Luchene on Jan 20, 2010
Latest reply on Jan 21, 2010 by Frederik Van Luchene

Hello,

 

I'm trying to make a propertymanagerpage and yesterday everything works perfect. Until today. When I run the macro he give me this error:

 

error 91 object variable or with block variable not set

 

on this line:

 

Sub Main()


    Set swApp = CreateObject("SldWorks.Application")
   
    If Not (swApp.ActiveDoc Is Nothing) Then
        If swPage Is Nothing Then
        Set swPage = New PropMgr
        swPage.Show 'display it
        Else
        swPage.Show
        End If
    End If
End Sub

 

Could someone help me?

 

I attached the macro.

 

thanks

Attachments

Outcomes