Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Writing a macro for my VB App

Posted on 2002-05-30
4
Medium Priority
?
126 Views
Last Modified: 2010-05-02
I want to give users the ability to record a macro when using my vb app. I then need a way for them to play it back. Anyone have any code that will achieve this?
0
Comment
Question by:alaplume
[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
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 200 total points
ID: 7045538
Listening, but here's some thoughts...

If your app is an ActiveX Executable, then you will have exposed various properties, methods and events which will become the Object Library interface.

After these are exposed, the app can be added to a VBA session and manipulated through VB in the same way that Word, Excel, etc. are manipulated.

I suspect that the only difference between Word and your app is that Word has a few extra commands that instantiate VBA with some customized items specific to the object library.

Maybe that's all there is to it, but I've never tried it so I'll see what else comes up from other experts.
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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses

721 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