Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default formula to hide a row in excel 2007

what is the formula to unhide row 27 if the value of cell C6 is greater than 0?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default formula to hide a row in excel 2007

Formulas ONLY return values. You need a worksheet_change macro

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"adamcr64" wrote in message
...
what is the formula to unhide row 27 if the value of cell C6 is greater
than 0?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default formula to hide a row in excel 2007

Hi,

You can't do that with a formula, it would have to be a macro. Tell us about
C6, is it a value that you enter or a formula?
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''s razor (Abbrev)


"adamcr64" wrote:

what is the formula to unhide row 27 if the value of cell C6 is greater than 0?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default formula to hide a row in excel 2007

This is for a customer incoming order. there are several hundred items and as
a value is added to a item it causes to item information line to unhide. C6
is one of the hundreds that need to be done

"Mike H" wrote:

Hi,

You can't do that with a formula, it would have to be a macro. Tell us about
C6, is it a value that you enter or a formula?
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''s razor (Abbrev)


"adamcr64" wrote:

what is the formula to unhide row 27 if the value of cell C6 is greater than 0?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default formula to hide a row in excel 2007


is this something i can do for this worksheet?
"Don Guillett" wrote:

Formulas ONLY return values. You need a worksheet_change macro

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"adamcr64" wrote in message
...
what is the formula to unhide row 27 if the value of cell C6 is greater
than 0?


.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default formula to hide a row in excel 2007

Hi,

Well you didn't answer the question as the whether C^ was an input value or
a formula but we'll go with this for now. Right click your sheet tab, view
code and paste the code in and then close VB editor. Now every time the
worksheet calculates the code will check C6 and hide/undide row 27 as
appropriate.

Private Sub Worksheet_Calculate()
If Range("C6").Value 0 Then
Rows(27).Hidden = True
Else
Rows(27).Hidden = False
End If
End Sub
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''''s razor (Abbrev)


"adamcr64" wrote:

This is for a customer incoming order. there are several hundred items and as
a value is added to a item it causes to item information line to unhide. C6
is one of the hundreds that need to be done

"Mike H" wrote:

Hi,

You can't do that with a formula, it would have to be a macro. Tell us about
C6, is it a value that you enter or a formula?
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''s razor (Abbrev)


"adamcr64" wrote:

what is the formula to unhide row 27 if the value of cell C6 is greater than 0?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default formula to hide a row in excel 2007


Hi It is a input value. I have several hundred of these to write on a
single worksheet. Can that be done using these macros?
Adam
"Mike H" wrote:

Hi,

Well you didn't answer the question as the whether C^ was an input value or
a formula but we'll go with this for now. Right click your sheet tab, view
code and paste the code in and then close VB editor. Now every time the
worksheet calculates the code will check C6 and hide/undide row 27 as
appropriate.

Private Sub Worksheet_Calculate()
If Range("C6").Value 0 Then
Rows(27).Hidden = True
Else
Rows(27).Hidden = False
End If
End Sub
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''''s razor (Abbrev)


"adamcr64" wrote:

This is for a customer incoming order. there are several hundred items and as
a value is added to a item it causes to item information line to unhide. C6
is one of the hundreds that need to be done

"Mike H" wrote:

Hi,

You can't do that with a formula, it would have to be a macro. Tell us about
C6, is it a value that you enter or a formula?
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''s razor (Abbrev)


"adamcr64" wrote:

what is the formula to unhide row 27 if the value of cell C6 is greater than 0?

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default formula to hide a row in excel 2007

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"adamcr64" wrote in message
...

Hi It is a input value. I have several hundred of these to write on a
single worksheet. Can that be done using these macros?
Adam
"Mike H" wrote:

Hi,

Well you didn't answer the question as the whether C^ was an input value
or
a formula but we'll go with this for now. Right click your sheet tab,
view
code and paste the code in and then close VB editor. Now every time the
worksheet calculates the code will check C6 and hide/undide row 27 as
appropriate.

Private Sub Worksheet_Calculate()
If Range("C6").Value 0 Then
Rows(27).Hidden = True
Else
Rows(27).Hidden = False
End If
End Sub
--
Mike

When competing hypotheses are equal, adopt the hypothesis that introduces
the fewest assumptions while still sufficiently answering the question.
Occam''''s razor (Abbrev)


"adamcr64" wrote:

This is for a customer incoming order. there are several hundred items
and as
a value is added to a item it causes to item information line to
unhide. C6
is one of the hundreds that need to be done

"Mike H" wrote:

Hi,

You can't do that with a formula, it would have to be a macro. Tell
us about
C6, is it a value that you enter or a formula?
--
Mike

When competing hypotheses are equal, adopt the hypothesis that
introduces
the fewest assumptions while still sufficiently answering the
question.
Occam''s razor (Abbrev)


"adamcr64" wrote:

what is the formula to unhide row 27 if the value of cell C6 is
greater than 0?


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
How do I hide gaps in an Excel 2007 chart? Waynesch Excel Discussion (Misc queries) 2 December 5th 09 11:20 AM
How can I hide a formula in Excel 2007 from other users seeing it Carrie Excel Discussion (Misc queries) 3 July 22nd 08 11:10 PM
Excel 2007 - hide row from print? Dennis Pedersen Excel Discussion (Misc queries) 2 November 14th 07 09:19 PM
Hide Close Button Excel 2007 [email protected] Excel Discussion (Misc queries) 0 May 31st 07 07:52 AM
How do I hide and unhide worksheets in Excel 2007? Wayne from Ottawa Canada Excel Discussion (Misc queries) 0 August 14th 06 02:54 AM


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