--
Records code if the macro recorder is on.
Syntax: expression.RecordMacro(BasicCode, XlmCode)
--
But... how can I turn on the macro recorder through Delphi? And give to
the macro a name, needed when I call it using the Run Method?
Thanks,
Daniel.
--
Daniel Valim Líberman dan...@ram.com.br
RAM Computer Systems www.ram.com.br
Fudiotes, desencatum.
Vita brevis...
Hi,
See Deborah Pate´s page about automation. I think the answer is there:
http://www.djpate.freeserve.co.uk/Automation.htm
--
JAM - Relájate y disfruta...
--
-- My code:
--
uses
VBIDE97;
var
vCodeModule: CodeModule;
//
// ...
//
pExcel := CreateOleObject ('Excel.Application');
vCodeModule := pExcel.ActiveWorkbook.VBProject.VBComponents.Item
('ThisWorkbook').CodeModule;
...... but in this last line there's an compilation error. The
method/property CodeModule (of Item('blabla') object) returns an Variant,
not a CodeModule (declared in VBI97, type of vCodeModule variable, which is
declared on my procedure). Incompatible types. And I couldn't apply a
typecast on this.
Well... I'll be searching more for some kind of solution...
Thanks for help.
[]s!