Visual Basic Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Export OLE Object (Excel) Text to File - VBA
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
I wonder if somebody could help me please. I have searched the internet and forums for a solution but have drawn a blank.
I have a lot of AutoCAD files which have embedded OLE objects (excel) inside. I want to be able to export only the text from the Excel OLE object using VBA (or Lisp, I don't mind which) without having to fire up the OLE application (i.e. Excel). Does anyone if it is possible to do this?
The embedded OLE objects have no link to any external files - so I imagine it must all be held somehow inside the AutoCAD file, but have no idea if or how it can be accessed?!!?
Any help anyone can offer is much appreciated.
Kind Regards
Ian
Re: Export OLE Object (Excel) Text to File - VBA
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi..this was pretty interesting..i looked for quite a few time in google before finally getting the below link
did not get the time to test any of it..its time to sleep now..i wonder why there is not much documentation around...hope you can get atleast get a start with this...
Re: Export OLE Object (Excel) Text to File - VBA
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi VBAChallenger,
Thanks for your reply. I had also found the same post and stepped through the code. It managed to fire up the OLE application and I suppose I could instantiate a loop to extract everything from all cells.
I was hoping to avoid having to open the OLE application from a debugging and speed point of view.
If I don't manage to find a solution I may have to look again at opening the OLE app, but I'm still hopeful there's a way without having to do this.
I'll update the post if I get any further.
Thanks..
