ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   add + suppress command buttons in execution time (https://www.excelbanter.com/excel-programming/358276-add-suppress-command-buttons-execution-time.html)

Ali Couran KOTE

add + suppress command buttons in execution time
 
Hi all,

I have wrote an Excel VBA Macro in witch I have a userform with too many
controls(commandbuttons, togglebuttons, etc.). I want to dynamically create
and suppress at least 4 of the commandbuttons in the execution time.
Does someone have any idea?

Thanks for all.

Ali



Jim Thomlinson

add + suppress command buttons in execution time
 
You can just set teh enabled property to false to graey out the buttons or
you can set the visible property to false...

CommandButton1.Visible = false
CommandButton2.Enabled = False

--
HTH...

Jim Thomlinson


"Ali Couran KOTE" wrote:

Hi all,

I have wrote an Excel VBA Macro in witch I have a userform with too many
controls(commandbuttons, togglebuttons, etc.). I want to dynamically create
and suppress at least 4 of the commandbuttons in the execution time.
Does someone have any idea?

Thanks for all.

Ali





All times are GMT +1. The time now is 05:33 PM.

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