Solved

Writing a macro for my VB App

Posted on 2002-05-30
4
119 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 100 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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7045546
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7045548
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7045549
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now