G
GS
I have installed the ms PIA for ofc XP, and followed the article
http://support.microsoft.com/kb/247412/
trying to paste into a worksheet
However I got late binding not allowed errors
....
webOCWraooer,Copy // get the desired data into clapboard
'Create a new workbook in Excel
Dim oExcel As Object
Dim oBook As Object
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add ' < option strict on disallows late
binding>
'Paste the data
oBook.Worksheets(1).Range("A1").Select ' < option strict on disallows
late binding>
oBook.Worksheets(1).Paste ' < option strict on disallows late binding>
so I tried
....
Dim oExcel As Excel.Application
Dim oBook As Excel.Workbook
oExcel = New Excel.Application
oBook = oExcel.Workbooks.Add ' so far so good
'Paste the data
oBook.Worksheets(1).Range("A1").Select() ' oops late binding
error
oBook.Worksheets(1).Paste() ' same as above
How do get around the last two?
I tried
oSheet As Excel.Worksheets
Dim oRange As Excel.Range
oSheet = oBook.ActiveSheets(1)
but that did not help
please Help
http://support.microsoft.com/kb/247412/
trying to paste into a worksheet
However I got late binding not allowed errors
....
webOCWraooer,Copy // get the desired data into clapboard
'Create a new workbook in Excel
Dim oExcel As Object
Dim oBook As Object
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add ' < option strict on disallows late
binding>
'Paste the data
oBook.Worksheets(1).Range("A1").Select ' < option strict on disallows
late binding>
oBook.Worksheets(1).Paste ' < option strict on disallows late binding>
so I tried
....
Dim oExcel As Excel.Application
Dim oBook As Excel.Workbook
oExcel = New Excel.Application
oBook = oExcel.Workbooks.Add ' so far so good
'Paste the data
oBook.Worksheets(1).Range("A1").Select() ' oops late binding
error
oBook.Worksheets(1).Paste() ' same as above
How do get around the last two?
I tried
oSheet As Excel.Worksheets
Dim oRange As Excel.Range
oSheet = oBook.ActiveSheets(1)
but that did not help
please Help