Bonjours,
Je veux utiliser la fonction "evaluate" dans le vb.net.

j'utilise cette code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
Imports Microsoft.Office.Interop.Excel
Private Sub SimpleButton4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleButton4.Click
Dim dc As New Microsoft.Office.Interop.Excel.Worksheet
Dim apexel As Microsoft.Office.Interop.Excel.Application
apexel = New Microsoft.Office.Interop.Excel.Application
Dim a As Integer
a = 4
MsgBox(apexel.Evaluate("si(" & a & ">10;'test';'test2')").ToString())
End Sub
Mais ca marche pas , il n'affiche pas le string "test2" ,il m'affiche un numero comme"-17445...", et je ne sais pas pourquoi!!
Est ce que vous pouvez m'aider?
Merci d'avance