?
Solved

Running an Excel VBA macro from a VB screen

Posted on 2003-03-14
6
Medium Priority
?
380 Views
Last Modified: 2010-04-07
Hi,
I'm importing an Excel chart into a VB OLE box which updates as soon as I run the macro in Excel is there a way in which I can run the Excel macro from a command button on the VB screen.
I'm also having trouble putting scroll bars on my form as when I import the Excel chart I can't few it all, the scroll bars I've inserted and at the sides are Ok but they don't scroll my form.
Appreciate any help,
Thanks Mick
0
Comment
Question by:mickcoleman
[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
6 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 8137530
Yes you could use Run ("macroname") method.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 8137547
example:
application.Run "test"
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 300 total points
ID: 8138486
0
 

Expert Comment

by:CleanupPing
ID: 8900091
mickcoleman:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 9699722
Moderator, my recommended disposition is:

    Accept Richie_Simonetti's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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
Course of the Month15 days, 2 hours left to enroll

771 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