Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel 8 Object library custom control

Posted on 1998-10-01
4
Medium Priority
?
519 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 240 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

Technology Partners: 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses

916 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