Results 1 to 5 of 5

Thread: Excel object won't quit...

  1. #1

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Not having much luck with this one so far...

    in a module:
    Code:
    Public xlOut As Excel.Application
    In a sub:
    Code:
     Set xlOut = CreateObject("Excel.Application")
     With xlOut
          .Application.DisplayAlerts = False
    
     etc. etc...
    
           .ActiveWorkbook.Close SaveChanges:=False
     End With
     xlOut.Quit
     Set xlOut = Nothing
    but the damn thing won't close till I quit my app.
    HHHHHHHHHHHHHHEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLPPPPPPPPPPPP!


  2. #2
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Angry

    I, too, have this problem...There MUST be a solution...
    Morgan
    [email protected] - Home
    [email protected] - Work
    Using VB6 SP6 but trying to learn VB2005EE

  3. #3

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Hi rockies - well I sorted my problem. Have a look at the post "Waste this dashed object". If it doesn't solve your problem then post your code (or email it to me at [email protected]) and I'll see if I can see anything wrong with it...

  4. #4
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195
    You might have more than the active workbook open. Add this line:

    xlOut.Workbooks.Close


    If you add it, it will look exactly like one that I have that works properly.


  5. #5
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Talking

    I'll give that one a try!

    Thanks!
    Morgan
    [email protected] - Home
    [email protected] - Work
    Using VB6 SP6 but trying to learn VB2005EE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width