LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Macro-Button make tu hide?

Hi F,

Assume the button is from the Forms Toolbar and is named "MyButton"


Should read:

Assume the button is from the Forms Toolbar and is named "Button 1"

---
Regards,
Norman



"Norman Jones" wrote in message
...
Hi F,

Assume the button is from the Forms Toolbar and is named "MyButton"
Assume that A1 is the cell to be used to show/hide the buttom
Assume that A1 contains a formula

In the sheet module, paste the following event code:

Private Sub Worksheet_Calculate()
Me.Shapes("Button 1").Visible = _
Range("A1").Value < 10 '<<====== CHANGE
End Sub

As this is worksheet event code, it should be placed in the worksheet
module, not a standard module. Right-click the worksheet tab, select 'View
Code' and paste te above code. Alt-F11 to return to the worksheet.

Change the cell address (A1) and the test value (< 10) to suit your
requirements.


---
Regards,
Norman



"frenic" wrote in
message ...

Hi,

cann I the macro-button make to hide?
Optional - dependent from the cell value.

Please, don't say NO!

Thenks
F.Vergan


--
frenic
------------------------------------------------------------------------
frenic's Profile:
http://www.excelforum.com/member.php...o&userid=25297
View this thread:
http://www.excelforum.com/showthread...hreadid=387878





 
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
URGENT!! Use macro button to hide empty columns and rows...HELP!!!! Hawk Excel Programming 8 July 8th 05 10:38 PM
Make more info appear when mouse moves over a macro command button Jeff at Bosch Corp. Excel Programming 1 May 25th 05 09:44 PM
Make macro-button sheet reference relative Perez Excel Programming 3 May 20th 05 10:38 AM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM
Make a cell into a Macro button Al[_4_] Excel Programming 5 November 5th 03 10:15 AM


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