ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how can i do a (fx) visible in a cell (https://www.excelbanter.com/excel-worksheet-functions/53586-how-can-i-do-fx-visible-cell.html)

maria28

how can i do a (fx) visible in a cell
 
I am working on an excel sheet with functions(fx).
The functions i use are shown in the formula bar.
My question is what should i do to see in the cell always the function
(except from the formula bar) and not the result of the function?


arno

how can i do a (fx) visible in a cell
 
Hi maria28,

always the
function (except from the formula bar) and not the result of the
function?


this "function" of Excel VBA will show you always the formula of cell
"d":

Function myFormula(d As Range) As String
'gives the formula of cell "d"
If d.Cells.Count 1 Then 'if you select more than one cell
myFormula = "Error: Refer to one cell only!" 'error message
Else
myFormula = d.Formula 'show the formula
End If
End Function

Place this "makro" in you workbook, in the sheets you use eg.
=myFormula(A1) to display the formula of cell A1.

arno


Gary''s Student

how can i do a (fx) visible in a cell
 
By typing CNTRL-TILDA you can toggle between displaying the formula and the
resutls of a formula in a cell
--
Gary''s Student


"maria28" wrote:

I am working on an excel sheet with functions(fx).
The functions i use are shown in the formula bar.
My question is what should i do to see in the cell always the function
(except from the formula bar) and not the result of the function?



All times are GMT +1. The time now is 01:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com