S
Sarah
A user of mine is having issues importing from Excel and
I cannot debug. OfficeXP, Access2000, Excel(8).
Here is the code, which for the life of me I cannot
figure out what is not working:
Dim myXL As Excel.Application
Dim myWB As Workbook
Dim myWS As Worksheet
Set myXL = GetObject(, "Excel.Application")
****at this poing myXL is valid
strFullName = Me.txtDefaultPath.Value
Set MyWB = myXL.Workbooks.Open(strFullName)
Set myWS = MyWB.Worksheets(1)
****at this point, myWB and myWS are equal to Nothing.
Can't figure out why. Any help is appreciated. Thanks!
I cannot debug. OfficeXP, Access2000, Excel(8).
Here is the code, which for the life of me I cannot
figure out what is not working:
Dim myXL As Excel.Application
Dim myWB As Workbook
Dim myWS As Worksheet
Set myXL = GetObject(, "Excel.Application")
****at this poing myXL is valid
strFullName = Me.txtDefaultPath.Value
Set MyWB = myXL.Workbooks.Open(strFullName)
Set myWS = MyWB.Worksheets(1)
****at this point, myWB and myWS are equal to Nothing.
Can't figure out why. Any help is appreciated. Thanks!