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

x
?
Solved

Writing a macro for my VB App

Posted on 2002-05-30
4
Medium Priority
?
127 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
  • 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

Independent Software Vendors: 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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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