|
-
Nov 15th, 2001, 11:49 AM
#1
Thread Starter
Lively Member
insert ole object error
When I try to insert an Excel spreadsheet ole object I get the following error:
System Error &H8007001 (-2147024895). Incorrect Function.
Does anyone know why? I use the same procedure to insert a word document and that works fine.
-
Nov 15th, 2001, 04:28 PM
#2
Lively Member
probably a bug in office, or your installation is corrupt. Try re-installing excel and then try! thats the only thing i can think of!
-
Nov 20th, 2001, 11:56 AM
#3
Addicted Member
Try this:
Dim wbk As Excel.Workbook
'Of course this is the Ole object
oleXL.CreateEmbed vbNullString, "Excel.Sheet"
Set wbk = mdiMain.ActiveForm.oleXL.object
For the rest refer to the wbk.sheets.....etc.....
Have fun!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|