I recorded a command and this is the code:
Sub Macro1()
'
' Macro1 Macro
' hide row
'
'
Rows("54:54").Select
Selection.EntireRow.Hidden = True
End Sub
How do I make this a function that I can use in a cell? For example I want this set of code to be named as function HIDEROW54. I want to be able to write a function that can be used in an Excel cell. E.g. if(b3="1",HIDEROW54,"")
Can any body give me some advice on how to do a user-defined excel function that can do this?
Thanks!
Sub Macro1()
'
' Macro1 Macro
' hide row
'
'
Rows("54:54").Select
Selection.EntireRow.Hidden = True
End Sub
How do I make this a function that I can use in a cell? For example I want this set of code to be named as function HIDEROW54. I want to be able to write a function that can be used in an Excel cell. E.g. if(b3="1",HIDEROW54,"")
Can any body give me some advice on how to do a user-defined excel function that can do this?
Thanks!