#1   Report Post  
Posted to microsoft.public.excel.misc
DeN DeN is offline
external usenet poster
 
Posts: 15
Default Help with Label

I need a macro or code that show or hidden a Label box when a condition in a
cell X is true or false.

A will appreciate any help from you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Help with Label

'Right click on sheet tab, view code, copy and modify to suit:

Private Sub Worksheet_Calculate()
Me.Shapes("Label 1").Visible = Range("A1").Value
End Sub

--
Best Regards,

Luke M
"Den" wrote in message
...
I need a macro or code that show or hidden a Label box when a condition in
a
cell X is true or false.

A will appreciate any help from you



  #3   Report Post  
Posted to microsoft.public.excel.misc
DeN DeN is offline
external usenet poster
 
Posts: 15
Default Help with Label


Sorry but Im not very familiarized with visual basic so I will try to be
more clear. Basically I have a cell with a macro that shows €śMeets€ť or €śDoes
not Meets€ť depending of the result of other cell. That Im trying to do is a
macro or visual basic code that display a Label box when €śMeets€ť is showed
and hidden it when €śDoes not Meet€ť is showed

Again I will appreciate any help from you

"Luke M" wrote:

'Right click on sheet tab, view code, copy and modify to suit:

Private Sub Worksheet_Calculate()
Me.Shapes("Label 1").Visible = Range("A1").Value
End Sub

--
Best Regards,

Luke M
"Den" wrote in message
...
I need a macro or code that show or hidden a Label box when a condition in
a
cell X is true or false.

A will appreciate any help from you



.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Help with Label

You will need to find the name of the label (sleect label, look at the name
box) and define this in the macro. To install, right click on sheet tab,
view code, paste in.

Private Sub Worksheet_Calculate()
If Range("A1").Value = "Meets" then
Me.Shapes("Label 1").Visible = True
Else
Me.Shapes("Label 1").Visible = False
End If
End Sub

--
Best Regards,

Luke M
"Den" wrote in message
...

Sorry but I'm not very familiarized with visual basic so I will try to be
more clear. Basically I have a cell with a macro that shows "Meets" or
"Does
not Meets" depending of the result of other cell. That I'm trying to do
is a
macro or visual basic code that display a Label box when "Meets" is showed
and hidden it when "Does not Meet" is showed

Again I will appreciate any help from you

"Luke M" wrote:

'Right click on sheet tab, view code, copy and modify to suit:

Private Sub Worksheet_Calculate()
Me.Shapes("Label 1").Visible = Range("A1").Value
End Sub

--
Best Regards,

Luke M
"Den" wrote in message
...
I need a macro or code that show or hidden a Label box when a condition
in
a
cell X is true or false.

A will appreciate any help from you



.



Reply
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
Changing the font for part of an axis label, not the whole label. amy45 Charts and Charting in Excel 2 April 5th 23 01:11 PM
How to rezize data label box in pie charts (label wraps to two lin rolliedogg Charts and Charting in Excel 1 October 18th 06 08:17 PM
COPY LABEL FORM FROM EXCEL TO A LABEL xrayAndi New Users to Excel 1 March 5th 06 02:21 PM
Identify Label €” More than one cell with label George Lynch Excel Discussion (Misc queries) 2 May 4th 05 05:12 PM
how to remove label formatting (eg label to number) sikkiekaka Excel Worksheet Functions 0 November 4th 04 11:35 PM


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

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"