I took it as thanhthanh12 wants to create his own 'record a macro' button on the form and instead of using a button on the ribbon, he wants to click his own button.
If that's the case, I would like to know - why?
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
The problem is that [tt]Application.CommandBars.GetEnabledMso("MacroRecordOrStop")[/tt] returns false, otherwise [tt]Application.CommandBars.ExecuteMso("MacroRecordOrStop")[/tt] would start the recorder.
Anyway, if the userform is shown modeless, there is a full access to ribbon and simple:
dhookom said:
Isn’t there already a button on the ribbon for this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.