VB.net simulate the VBA macro recorder


In a VB.net Excel add-in is there a way to simulate the macro recorder?

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:

You need to do it in Excel VBA, cut and paste the result in your add-in, and adjust the name of the objects.
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi. Thanks very much. How do you cut and paste the results?
Jacques Bourgeois (James Burger)PresidentCommented:
In the resulting VBA macro code you do Edit...Copy or Cut (Ctrl-C or Ctrl-X)

Then in the Add-In code you do Edit Paste (Ctrl-V)
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi. Thanks but I need to do this automatically. I need to find VB.net code that will automate this process.
Jacques Bourgeois (James Burger)PresidentCommented:
Maybe I did not understand your question correctly.

Is this something you want to use for your own development, or is this a feature that you wanted to have in your application.

If it is a feature for the application, then you have to licence Visual Studio Tools for Applications. Since I do not have any experience with that product, I won't tell you more about it. You can search for it, maybe looking at http://blogs.msdn.com/b/dr._ex/archive/2005/10/03/476435.aspx for a start.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks for the help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.