Solved

Exposing a object to VBA macros

Posted on 1998-07-31
1
288 Views
Last Modified: 2010-05-03
I generate a data report and control information in 2 separate files. The control information contains information such as number of reports, where the report starts, number of columns etc. The excel VBA macros use that control information and format the data in the excel spreadsheet. Here is what I want to do. As report is generated from the VB, VB program has access to the control information. I want to make an object model from that control information and expose those objects to VBA macros, so that anybody can have easy access to data and do whatever they want with that data.  
How do I expose the objects from VB to excel VBA ? Or any other better suggestions .

I don't have many points, so giving only 10.
 
0
Comment
Question by:sgarg
1 Comment
 
LVL 2

Accepted Solution

by:
Jagar earned 10 total points
ID: 1467399
Create the ActiveX as a DLL this will open the object model to anybody as long as they put a reference to the DLL in there project and you make the objuct MultiUse or Public or something along those lines in the instancing property of the control.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

828 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