Link to home
Start Free TrialLog in
Avatar of mickcoleman
mickcoleman

asked on

Running an Excel VBA macro from a VB screen

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
Avatar of Richie_Simonetti
Richie_Simonetti
Flag of Argentina image

Yes you could use Run ("macroname") method.
example:
application.Run "test"
ASKER CERTIFIED SOLUTION
Avatar of Richie_Simonetti
Richie_Simonetti
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

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?
Moderator, my recommended disposition is:

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

DanRollins -- EE database cleanup volunteer