Avoid excel messages VB.net

0

I have an application that makes EXCEL imports, but I get messages that I want to prevent them from coming out. For this, I use

  xlsApp = New Excel.Application
        xlsApp.Visible = True
        xlsApp.DisplayAlerts = False
        xlsWB = xlsApp.Workbooks.Open(rutaArchivos & "\" & Me.fuExcelImportacionLavado.FileName)
        xlsSheet = xlsWB.Worksheets(1)

but still it's still coming out. How can I prevent it from coming out?

The message that comes out is the following:

Any Idea? Thank you very much !!

    
asked by Geraniego 01.06.2018 в 09:37
source

0 answers