Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I suppress the time in m/d/yy date column? hbrad Excel Discussion (Misc queries) 1 September 8th 08 08:55 PM
Suppress dialog from regserver command mdullni1 via OfficeKB.com Excel Discussion (Misc queries) 3 April 30th 08 07:51 PM
Command Button Macro Execution Failure Dick Scheibe[_2_] Excel Programming 0 August 22nd 05 10:40 PM
Control Buttons vs. Command Buttons Robert Gibson Excel Programming 1 October 13th 03 04:33 PM
How to suppress Time ? Milind Excel Programming 2 September 14th 03 01:36 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"