Solved

Writing a macro for my VB App

Posted on 2002-05-30
4
125 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 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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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
Course of the Month5 days, 18 hours left to enroll

627 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