Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE Objects?

Status
Not open for further replies.

Reimondo

Technical User
Feb 26, 2003
26
AU
Hi,

I'm new to VB, and I'm trying to add a bit of VB code to automatically insert a OLE object into a form (via a button). However, when I try to compile the code, I get a error message "compile error: can't find project or library" and it highlights the 'OLE1' object.

As I've never used OLE objects before in VBA before, I was wondering which reference library do I need to get the OLE object to work?
I've looked through all the available references in VB6 and added all the one's with 'OLE' in the title, but it still doesn't work.

Also, can anyone provide me with some template code on how to 'automatically' insert an excel document as an OLE object into a form (via a button), and to make it editable within the form? So far I have declared a field called 'LetterChecklist' with the type 'OLE Object'...but I need some advice on the VBA coding part.


Thanks,

Raymond
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top