I think I've figured out a partial answer by searching other boards and 
some tinkering.  Apparently command buttons are now one of several shapes 
on the sheet.  They seem to no longer have the ability to be disabled, but 
can be made visible/invisible (almost as good).  
The code below inserted on the sheet containing the button can change 
visibility of a command button with object name "Button 1":  

 ' (Command Button is a Type of Shapes on Sheet)
 Shapes("Button 1").Visible = False
 MsgBox("Button is now invisible")
 Shapes("Button 1").Visible = True
 MsgBox("Button is now visible")


On Wednesday, February 26, 2014 4:44:11 PM UTC-5, Jack O'Leary wrote:

> I have many many VBA accentuated files from previous version of excell 
> (2000, 2003, 2007) where I have added a command button to a sheet, and then 
> associated it with a subroutine on the sheet.  In my newer version of 
> excel, it appears the command button has been moved outside the scope of a 
> sheet.  I cannot figure out how to access its class within VBA to 
> manipulate it.  Where is it?  How can I progrmatically change it from 
> states of .enabled to .disabled?  For instance it used to be 
> Sheet1.Command_Button1...
> Thanks,
> Jack
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to