Skip to main content

Search

Search

Excel not closing after vbscript finish looking for Data value

Comments

3 comments

  • Avatar
    Peter Thane

    Is there any reason you are using VB and not creating a Database Connection to achieve this?

    My guess would be that Excel is doing the usual and asking if you want to save it or not when you try to close it and so may need to include something in your script for this.

    0
  • Avatar
    Pascal Lacasse

    DB is already been used to grab other data.

    I try out different way, save and close. Still not working.

    Set FoundCell = Nothing
    oData.Close False
    Set oData = Nothing
    oExcel.Quit 
    Set oExcel = Nothing

    For now, after script is executed, we kill Excel in task manager using VBScript.

     

    0
  • Avatar
    Peter Thane

Please sign in to leave a comment.