bug .xlsm macro deleted

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
folocco
Posts: 5
Joined: Mon Nov 06, 2017 4:25 pm

bug .xlsm macro deleted

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: bug .xlsm macro deleted

Post by larsa »

Hello

Please send me a file with this macro.
Lars Arvidsson, Axolot Data
folocco
Posts: 5
Joined: Mon Nov 06, 2017 4:25 pm

Re: bug .xlsm macro deleted

Post by folocco »

I sent you a private mail.
Thanks
Post Reply