View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier Roger Govier is offline
external usenet poster
 
Posts: 2,886
Default hiding huge formula's in an excel sheet

Hi

In addition to what Pete has suggested, if the formulae are not too
long, then you might be able to create named formulae.
InsertNamedefine
Name myFormula1
Refers to =your_long_formula

If you copy the formula, then you can use Ctrl + V to Paste it into the
Refers to pane.
In your cell then just use =myFormula1

Alternatively, If the problem is only when you access the cell for
editing purposes, and you cannot see the column headings, you could run
the small macro, which will toggle the sheet from filling the screen, to
taking up a smaller area. These are the sizes I find suitable, you can
vary the values to suit yourself.

Sub smallsheet()

If ActiveWindow.WindowState = xlMaximized Then
Windows.Arrange ArrangeStyle:=xlCascade
With ActiveWindow
.Top = 56.5
.Left = -2.75
.Width = 765
.Height = 393
End With

Else
ActiveWindow.WindowState = xlMaximized
End If

End Sub

You can copy the code and paste it into your Visual Basic Editor
(VBE) in a Standard Module located in your file.

To do this,

Alt + F11 (open VBE)
Ctrl + R (open Project Explorer)
Select the file name on the left
Insert Module
Paste code in Module

To run the macro, ToolsMacroMacrosSelect the macroRun.

If you want to create a shortcut, then ToolsMacrosSelect the
macroOptionsenter a key to use with CtrlOK


If you are new to entering macros, then David McRitchie has lots of
useful help on his site at
http://www.mvps.org/dmcritchie/excel/install.htm
http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Regards

Roger Govier


"sandert" wrote in message
...
Hello,

One of collegue's had made an excel sheet with a huge formula.

When you open the excel sheet you see the huge formula wich stands in
the
content of the sheet

Is the anyway to hide the formula ?