[quote=335824:@julien assayah] @Eugene Dakin
[google translate] Apportez Excel à l’avant
When excel starts, it goes in the background. Never in the foreground.[/quote]
[google translate] SetForegroundWindow amène l’application Excel vers l’avant.
SetForegroundWindow brings the Excel application to the front.
[code]Dim excel as new ExcelApplication
excel.Workbooks.Add
excel.Visible = True
excel.Range(“A1”).Value = “test”
Declare Function SetForegroundWindow Lib “User32.dll” (hWnd as Integer) as Integer
excel.Worksheets(“Sheet1”).Activate
//Bring excel worksheet to front
Call SetForegroundWindow(excel.ActiveWorkbook.Application.Handle.Integer)[/code]