Solved

Excel 8 Object library custom control

Posted on 1998-10-01
4
517 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
[X]
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
  • 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
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…
Suggested Courses
Course of the Month8 days, 12 hours left to enroll

617 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