AnsweredAssumed Answered

swAppearance

Question asked by Willie Roelofs on Aug 31, 2015
Latest reply on Sep 1, 2015 by Leon Wurr

Hi I'm trying to execute the following macro:

2012 SOLIDWORKS API Help - Get Appearance Filename Example (VBA)

 

At line:

Debug.Print "First appearance's filename: " & swAppearance.FileName

 

I get the error:

Run-time error "91":

 

Object variable or With block variable not set.

 

1. File is open.

2. File is active

3. File is saved.

4. File has an appearance

 

What am I doing wrong?

Outcomes