ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Record a Macro through VBA (https://www.excelbanter.com/excel-programming/339587-record-macro-through-vba.html)

T-容x[_69_]

Record a Macro through VBA
 

How do you start recording a macro through VBA?

I tried *Application.RecordMacro BasicCode:="Application.Ru
""WhatsHappening"" "*...
Put it in an activate event in a worksheet... doesn't seem to work...
:

--
T-容
-----------------------------------------------------------------------
T-容x's Profile: http://www.excelforum.com/member.php...fo&userid=2657
View this thread: http://www.excelforum.com/showthread.php?threadid=46617


T-容x[_71_]

Record a Macro through VBA
 

Hmmm....

I browsed through the VBA Help... This is what I found about
RecorMacro...

'Records code *if macro recorder is on*.'

So, you can't use RecordMacro to *start* recording a macro? :eek: So,
how do you start recording a macro in VBA?

Anyone???


--
T-容x
------------------------------------------------------------------------
T-容x's Profile: http://www.excelforum.com/member.php...o&userid=26572
View this thread: http://www.excelforum.com/showthread...hreadid=466172


Daminc[_3_]

Record a Macro through VBA
 

I'm sorry. But personally I have no idea. Why would you want to do this
anyway?


--
Daminc
------------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=466172


Stephen Bullen[_4_]

Record a Macro through VBA
 
Hi T-容x,

How do you start recording a macro through VBA?


You can't, sorry. The "Record macro" menu item is disabled when VBA is
running.

Regards

Stephen Bullen
Microsoft MVP - Excel

Professional Excel Development
The most advanced Excel VBA book available
www.oaltd.co.uk/ProExcelDev




All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com