Add Button with ControlsObjects

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Berwer
Posts: 1
Joined: Tue Feb 11, 2020 12:11 pm

Add Button with ControlsObjects

Post by Berwer »

Hallo

in an older Version of XLSReadWrite I added a Button to an XLS-File with XLSRW.Sheets[3].ControlsObjects.Button.Add

in my new Version (XLSReadWriteII5) this does not work, ControlsObjects could not be found.

What is my mistake, wrong installation?

What can I do?

How can I install a Button,

Thanks, Berwer
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Add Button with ControlsObjects

Post by larsa »

Hello

Use:

Code: Select all

XLS.BIFF.Sheet[0].ControlsObjects.Buttons.Add;
Controls works only with XLS files.
Lars Arvidsson, Axolot Data
Post Reply