Solved

Excel 8 Object library custom control

Posted on 1998-10-01
4
513 Views
Last Modified: 2012-06-21
When I select "Excel 8 object library" under the custom controls, VB searches for Excel.exe. Should'nt VB be looking for an .ocx file in the Windows System directory?

If so, can you tell me the file name?
0
Comment
Question by:ncw
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 60 total points
ID: 1437678
Actually, what it needs is Excel8.olb, but it may have been checking to make sure that Excel exists because it *is* required.

There is no Excel ocx.  What you were clicking was in References (as opposed to Components).

Adding references allow you to access external applications from within VB using VB syntax.
0
 
LVL 1

Author Comment

by:ncw
ID: 1437679
I've found Excel.olb in the Office directory, but when I selected it under browse in the custom controls selection dialog VB4 32bit said unable to load.

If I 'tick' 'Microsoft Excel8 Object Library' in the list it searches then returns an error message "out of memory" - the PC has 32MB and I've had the same responce from one with 64MB of RAM.

Any clues?
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1437680
Excel.olb is *not* a custom control.  It is a reference library to Excel's exposed objects.

From within VB, select menu option Project/References.  Scroll down the list until you see Microsoft Excel 8.0 Object Library.
Check the box next to that item and click OK.
Then (still within VB) select menu option View/Object Browser (or press F2).
In the screen that appears, select 'Excel' in the top dropdown list box in the top left of the screen.
0
 
LVL 1

Author Comment

by:ncw
ID: 1437681
Ok I got it, its *not* a control - what confused me was that Excel 8 object library appears as an option under 'custom controls' menu option (VB4 32bit). Only Excel 5 appears under 'references'.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question