Page 1 of 1

bug .xlsm macro deleted

Posted: Mon Nov 13, 2017 3:11 pm
by folocco
Hi

if i write some cells in a file .xlsm that contains a macro originally when i reopen it all the macro are disappeard, this happen only if i wrote something in the file, if i just open the file later i can still find my macro inside.
this is my code, if i delete the last row all my macro are fine otherwise no.

XLS1.Create(self);
XLS1.LoadFromFile('C:\Users\Fabrizio\Desktop\rotto1.xlsm');
XLS1.SheetByName('Combinato').AsString[3,3] := 'inserito ora';
XLS1.Write;

Thanks for your help

Re: bug .xlsm macro deleted

Posted: Thu Nov 16, 2017 8:42 am
by larsa
Hello

Please send me a file with this macro.

Re: bug .xlsm macro deleted

Posted: Fri Nov 17, 2017 4:56 pm
by folocco
I sent you a private mail.
Thanks