Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 199
Default how to disable/enable command button (ActiveX) using a macro

You're welcome.

Keiji

enahs_naneek wrote:
Thank you keiji - it worked perfectly
_______________________________
keiji kounoike wrote:
There are some ways to disable commandbutton.
One way is

Sub Disable()
ActiveSheet.OLEObjects("CommandButton1").Enabled = False
End Sub

Keiji

Thank you for your reply
I have entered the code you provided within my "Disable" macro (shown below)

[quoted text clipped - 46 lines]
[quoted text clipped - 13 lines]
Any help much appreciated


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 to disable/enable command button(ActiveX) using macro enahs_naneek Excel Discussion (Misc queries) 1 February 5th 10 12:32 PM
Enable / Disable Command Button depending on a cell's value [email protected] Excel Programming 4 August 24th 07 04:44 PM
Enable/Disable Command Button Phil Excel Programming 3 July 10th 07 10:16 AM
Enable / Disable a button using a macro SapnaT Excel Programming 0 November 26th 04 09:56 AM
Enable/Disable Button surplusbc[_6_] Excel Programming 1 February 1st 04 09:53 PM


All times are GMT +1. The time now is 06:17 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"