ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   change properties on (https://www.excelbanter.com/excel-programming/376449-change-properties.html)

k2sarah

change properties on
 
i am trying to modify the property of control toolbox by looping through all
the controls on a spreadsheet. below is the code. in the code below i am able
to retrieve properties such as (xa=ctl.name), but am unable to alter the
properties of the control. CTL.Caption="test" returns an error. any help
would be appreciated.

thks


Dim ctl as Object
For each ctl in ActiveSheet.Shapes
xa=ctl.Name
ctl.caption="test"?
Next



All times are GMT +1. The time now is 02:59 AM.

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