View Single Post
 
Old 01-08-2012, 09:08 PM
gsrikanth gsrikanth is offline Windows XP Office XP
Competent Performer
 
Join Date: Dec 2011
Posts: 133
gsrikanth is on a distinguished road
Default

Quote:
Originally Posted by JBeaucaire View Post
A FUNCTION() is by definition a formula. If it is used in a cell, that is.

However a macro can be invoked to run on the activecell. This macro will convert the current selected cells into flat values:

Code:
Sub RemoveFormulas()
    Selection.Value = Selection.Value
End Sub
in below function by giving =sss(a1) in formula bar it well get font size of user

Public Function sss(strCell) As String
sss=strCell.Font.Size
End Function

like that only i need, if i give =sss(a1) remove formula and give flat value
Reply With Quote