Message 1 of 4
CommandButton properties in Excel
Not applicable
04-24-2007
12:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I am working on a VB project for AutoCAD Electrical where I need to read the 'caption' of a commandbutton located on an excel worksheet. I know how to access the data from the spread sheet using the workbook objects but I am at a loss here regarding the commandbutton object & its properties. If I was writing an excel macro, this is how I would use it:
If ActiveSheet.Shapes("cmdHide").Caption = "UNHIDE" Then
ActiveSheet.Shapes("cmdHide").Select
End If
I have tried defining worksheet shapes object & also use the dropdown property but it just doesn't work. Any advice please?
Thanks in advance.
I am working on a VB project for AutoCAD Electrical where I need to read the 'caption' of a commandbutton located on an excel worksheet. I know how to access the data from the spread sheet using the workbook objects but I am at a loss here regarding the commandbutton object & its properties. If I was writing an excel macro, this is how I would use it:
If ActiveSheet.Shapes("cmdHide").Caption = "UNHIDE" Then
ActiveSheet.Shapes("cmdHide").Select
End If
I have tried defining worksheet shapes object & also use the dropdown property but it just doesn't work. Any advice please?
Thanks in advance.