LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide clicked commandButton

Hi!

I would like to hide a button when it has clicked, for example:

Private Sub SomeBtn_Click()
<some code
ActiveSheet.Shapes("SomeBtn").Visible = False
End Sub

but for some reason the button is not being hidden.

The line "ActiveSheet.Shapes("SomeBtn").Visible = False" works fine
when not called by SomeBtn_Click() (or a sub called by
SomeBtn_Click()).

Any ideas?

Many thanks,

Luke

 
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
Clicked NO to save, should have clicked YES Jenn Excel Discussion (Misc queries) 1 March 8th 10 09:04 PM
CommandButton used to hide and unhide rows Leiprecht Excel Discussion (Misc queries) 1 April 9th 09 06:05 PM
How do I format cells to reveal or hide contents when clicked? Nanne Excel Discussion (Misc queries) 2 January 5th 09 06:03 PM
Hide commandbutton? capt Excel Discussion (Misc queries) 2 February 21st 08 07:40 PM
Change cell value when right-clicked/double-clicked grime[_5_] Excel Programming 5 October 17th 05 01:52 PM


All times are GMT +1. The time now is 06:40 AM.

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"