M
Mick
Guest
Salut
Je cherche à ouvrir un tableau excel àpartir de Visual, faire des modifications dessus, toujours à partir de Visual (jusqu'à là , j'arrive) et surtout enregistrer ces modifications pour pouvoir réutiliser mon tableau par la suite.
voici mon code:
Dim xlApp As Object
Dim xlSheet As Object
Private Sub Form_Load()
Set xlApp = CreateObject("Excel.Application")
xlApp.Workbooks.open filename:="\\Zeus\M1GMP\croguemi\Mes documents\dernier\dédéa tableau.xls"
Set xlSheet = xlApp.Worksheets(1)
xlSheet.Application.Visible = True
End Sub
Private Sub Modif_Click()
xlSheet.Cells(1, 1) = "DEDE"
End Sub
Private Sub Enregistrer_Click()
?????> xlApp.Workbooks.SaveAs filename:="\\Zeus\M1GMP\croguemi\Mes documents\dernier\dédéa tableau.xls"
End Sub
Salut
Je cherche à ouvrir un tableau excel àpartir de Visual, faire des modifications dessus, toujours à partir de Visual (jusqu'à là , j'arrive) et surtout enregistrer ces modifications pour pouvoir réutiliser mon tableau par la suite.
voici mon code:
Dim xlApp As Object
Dim xlSheet As Object
Private Sub Form_Load()
Set xlApp = CreateObject("Excel.Application")
xlApp.Workbooks.open filename:="\\Zeus\M1GMP\croguemi\Mes documents\dernier\dédéa tableau.xls"
Set xlSheet = xlApp.Worksheets(1)
xlSheet.Application.Visible = True
End Sub
Private Sub Modif_Click()
xlSheet.Cells(1, 1) = "DEDE"
End Sub
Private Sub Enregistrer_Click()
?????> xlApp.Workbooks.SaveAs filename:="\\Zeus\M1GMP\croguemi\Mes documents\dernier\dédéa tableau.xls"
End Sub
Salut