Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Excel 8 Object library custom control

Posted on 1998-10-01
4
512 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 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