RExcel Compilation de texte
Bonjour, tout le monde
Cette procédure marche super :
Code:
1 2 3 4 5
| Private Sub CommandButton2_Click()
RInterface.StartRServer
RInterface.RRun "z<-3*5"
RInterface.GetArray "z", Range("A2")
End Sub |
Mais quand je veux placer "z<-3*5" dans une variable et ensuite compiler la variable ca ne marche pas.
J'obtient l'erreur :
Code:
Type d'argument ByRef incompatible
Code:
1 2 3 4 5 6
| Private Sub CommandButton2_Click()
RInterface.StartRServer
Formula = "z<-3*5"
RInterface.RRun Formula
RInterface.GetArray "z", Range("A2")
End Sub |
Savez vous comment gérer cette manipulation?