Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Excel > Functions User Defined > NUMBERFORMATGET< Previous | Next > 

 

NUMBERFORMATGET(rgeCell)

 
 

Returns whether a particular cell contains a formula.

 

 
rgeCellThe cell you want to check.
 

 

REMARKS

 
 
  • Calling this function IsFormula rather than HasFormula is in keeping with other Excel functions.

     

     
    1
    2
    3
    4
    5
    6
    7
    Option Explicit

    Public Function NUMBERFORMATGET(ByVal rgeCell As Range) As String
       Call Application.Volatile(True)

       NUMBERFORMATGET = rgeCell.NumberFormat
    End Function
       

     

    Example

     
       

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.< Previous | Top | Next >