A
a.theil
Please help!
I need a simple excel automation, just 2 write some files into excel.
I do:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oXL.Visible = True
oWB = oXL.Workbooks.Add
oSheet = oWB.ActiveSheet
oSheet.Cells(1, 1).value = "Test"
and it says there is no method workbook.add
I couldn´t add the reference microsoft excel object 10.0 because
studio says already added, so I added 5.0 which worked. Also in the
5.0 object explorer there is worksheets.add. So wth does studio need
more?
help very appreciated
regards, Jerry
I need a simple excel automation, just 2 write some files into excel.
I do:
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim oRng As Excel.Range
oXL = CreateObject("Excel.Application")
oXL.Visible = True
oWB = oXL.Workbooks.Add
oSheet = oWB.ActiveSheet
oSheet.Cells(1, 1).value = "Test"
and it says there is no method workbook.add
I couldn´t add the reference microsoft excel object 10.0 because
studio says already added, so I added 5.0 which worked. Also in the
5.0 object explorer there is worksheets.add. So wth does studio need
more?
help very appreciated
regards, Jerry