Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Excel - Put command button on sheet & connect to a VB sub

How do I do the title?

I created a vb sub to use the Clean function, I cannot figure out how to run it.

Thanks
Avatar of Jacques Geday
Jacques Geday
Flag of Canada image

Just call the sub from the macro menu.

Either from the developer Menu press on the Macro button and choose your macro and press Run
or
From the View Menu the last item is Macro press on the drop down and Choose Macroes and select your macro from the ones showing and press run

gowflow
can you post what you did so far and will do it ?
gowflow
Avatar of Richard Korts

ASKER

I figured it out. I was using a normal command button, not an Active X control.

For some unknown reason, you create an Active x command button control & it names it Commandbutton21

There is no Macro; just the attached.

I never could figure out macros in Excel.
Clean-VB-sub.jpg
ASKER CERTIFIED SOLUTION
Avatar of Jacques Geday
Jacques Geday
Flag of Canada 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