PC Review


Reply
Thread Tools Rate Thread

Dim and Disable Buttons

 
 
jswalsh33
Guest
Posts: n/a
 
      11th May 2009
I have a worksheet with Buttons that are used to launch different macros. At
certain times I would like to make some buttons inactive.

I would like to be able to Dim and make thise buttons inactive.

I am running Windows XP and Excel OFFXL7.

Suggestions?

Jim Walsh


 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      11th May 2009
hi
not hard really. in help look up the enabled property.
might work like this...
sheets("sheet1").commandbuttton1.endable = false ' to turn off
sheets("sheet1").commandbuttton1.endable = true ' to turn on

but....

>At certain times I would like to make some buttons inactive.


this sounds like the real tricky part. due to lack of info, i don't think i
am able to help much further. sorry.

Regards
FSt1

"jswalsh33" wrote:

> I have a worksheet with Buttons that are used to launch different macros. At
> certain times I would like to make some buttons inactive.
>
> I would like to be able to Dim and make thise buttons inactive.
>
> I am running Windows XP and Excel OFFXL7.
>
> Suggestions?
>
> Jim Walsh
>
>

 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      11th May 2009
sorry. i misspelled enabled on the example i gave. should be..
> sheets("sheet1").commandbuttton1.enabled= false ' to turn off
> sheets("sheet1").commandbuttton1.enabled = true ' to turn on


accursed fat fingers!!

regards
FSt1


"FSt1" wrote:

> hi
> not hard really. in help look up the enabled property.
> might work like this...
> sheets("sheet1").commandbuttton1.endable = false ' to turn off
> sheets("sheet1").commandbuttton1.endable = true ' to turn on
>
> but....
>
> >At certain times I would like to make some buttons inactive.

>
> this sounds like the real tricky part. due to lack of info, i don't think i
> am able to help much further. sorry.
>
> Regards
> FSt1
>
> "jswalsh33" wrote:
>
> > I have a worksheet with Buttons that are used to launch different macros. At
> > certain times I would like to make some buttons inactive.
> >
> > I would like to be able to Dim and make thise buttons inactive.
> >
> > I am running Windows XP and Excel OFFXL7.
> >
> > Suggestions?
> >
> > Jim Walsh
> >
> >

 
Reply With Quote
 
jswalsh33
Guest
Posts: n/a
 
      12th May 2009


"FSt1" wrote:

> sorry. i misspelled enabled on the example i gave. should be..
> > sheets("sheet1").commandbuttton1.enabled= false ' to turn off
> > sheets("sheet1").commandbuttton1.enabled = true ' to turn on

>
> accursed fat fingers!!


I tried the suggested code and got runtime error "Object doesn't support
this property or method"

I also do not know what my Button numbers are. Is there a way to tell?

Any additional help would be greatly appreciated.

Jim Walsh
>
> regards
> FSt1
>
>
> "FSt1" wrote:
>
> > hi
> > not hard really. in help look up the enabled property.
> > might work like this...
> > sheets("sheet1").commandbuttton1.endable = false ' to turn off
> > sheets("sheet1").commandbuttton1.endable = true ' to turn on
> >
> > but....
> >
> > >At certain times I would like to make some buttons inactive.

> >
> > this sounds like the real tricky part. due to lack of info, i don't think i
> > am able to help much further. sorry.
> >
> > Regards
> > FSt1
> >
> > "jswalsh33" wrote:
> >
> > > I have a worksheet with Buttons that are used to launch different macros. At
> > > certain times I would like to make some buttons inactive.
> > >
> > > I would like to be able to Dim and make thise buttons inactive.
> > >
> > > I am running Windows XP and Excel OFFXL7.
> > >
> > > Suggestions?
> > >
> > > Jim Walsh
> > >
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable buttons after click rascal Microsoft Access Forms 1 24th Feb 2008 03:41 PM
disable extra buttons on a 5 buttons mouse (how to) =?Utf-8?B?c2t1bG1hdA==?= Windows XP General 3 21st Apr 2005 04:58 AM
Skin pocket pc, disable hardware buttons, disable start button Tizio Incognito Microsoft Dot NET Compact Framework 1 3rd Feb 2005 09:13 AM
Disable Buttons =?Utf-8?B?UnlhbiBX?= Microsoft Access 3 1st Feb 2005 05:59 PM
Disable these buttons ! ! ! Mario Microsoft Access 1 25th Jan 2004 07:10 PM


Features
 

Advertising
 

Newsgroups
 


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