Mollethewizard
IS-IT--Management
I would like to run Excel from a Word macro. I’ve managed to open Excel and a worksheet but I can’t figure out how to write the code that transfers the values of some textboxes from a user form in Word to the appropriate cells in Excel.
Enclose the code so far.
Can anyone help?
Sub Excel()
Dim objExcelApp As New Excel.Application
Dim objExcel As Object
Set objExcelApp = New Excel.Application
Set objExcel = objExcelApp.Workbooks.Open _("K:\office\excel\test.xls"
objExcelApp.Visible = True
Black hole
End Sub
Greetings Christer
Enclose the code so far.
Can anyone help?
Sub Excel()
Dim objExcelApp As New Excel.Application
Dim objExcel As Object
Set objExcelApp = New Excel.Application
Set objExcel = objExcelApp.Workbooks.Open _("K:\office\excel\test.xls"
objExcelApp.Visible = True
Black hole
End Sub
Greetings Christer