cassidybklyn
Programmer
Gentlemen,
I am executing the following VB6/Excel:
Dim xlApp As Object
Dim xlWbk As Object
Dim xlWksht As Object
Set xlApp = CreateObject("Excel.Application")
Set xlWbk = xlApp.Workbooks.Open("C:\BiWeeklyPeriod.xls")
Set xlWksht = xlWbk.Worksheets("Sheet1") <======= this line
Then I got the above subject line error on the last line of code. What have I done wrong?
Thanks.
Cassidy.
I am executing the following VB6/Excel:
Dim xlApp As Object
Dim xlWbk As Object
Dim xlWksht As Object
Set xlApp = CreateObject("Excel.Application")
Set xlWbk = xlApp.Workbooks.Open("C:\BiWeeklyPeriod.xls")
Set xlWksht = xlWbk.Worksheets("Sheet1") <======= this line
Then I got the above subject line error on the last line of code. What have I done wrong?
Thanks.
Cassidy.