Issues with VBA & loading objects

Discussion in 'SolidWorks' started by gedkins, Jan 20, 2005.

  1. gedkins

    gedkins Guest

    I have SW 2004 SP 5 running on XP SP1. I also have VB 6.0 installed.
    For a while now when I load any large assemblies when certain parts
    come into memory I get the warning dialog of Visual Basic "This action
    will reset your project, proceed anyway. I am betting its an anti-virus
    was running during one of the installs. Any guidance on fixing this or
    is it just uninstall/reinstall either SW or VB.

    G
     
    gedkins, Jan 20, 2005
    #1
  2. I think first I would try just telling the SW SP to do a repair, of course
    with AV turned off. See is that fixes it.

    WT
     
    Wayne Tiffany, Jan 20, 2005
    #2
  3. gedkins

    That70sTick Guest

    Does this happen only after you've run or edited VB programs or SW
    macros?

    It's possible the programs aren't completely terminating because you
    are not releasing all of your object variables.

    Make sure every program makes a clean exit. Set all object variables
    to Nothing.

    i.e.
    Set Part = Nothing
    Set swApp = Nothing
     
    That70sTick, Jan 20, 2005
    #3
  4. gedkins

    gedkins Guest

    Hey folks I found the fix , at least a temporary one. After opening SW,
    open the VBA macro editor and under Tools,Options. Go to the General
    tab and deselect the Notify Before State Loss. Does the trick! My
    guess is I have bad install of VB and need to reinstall but this will
    get me through until then.

    Guy
     
    gedkins, Jan 26, 2005
    #4
  5. I just checked my setting and it is off. Maybe you somehow just got it
    turned on...

    WT
     
    Wayne Tiffany, Jan 26, 2005
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.