Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Fontana, California, USA
    Posts
    625
    Thanks
    0
    Thanked 0 Times in 0 Posts

    See formulas (XP)

    Hi - I'm taking an accounting class. The professor wants to see the results of formulas in one column and the formulas in another. How can I do that without retyping the formulas as text?

    Thanks

    Peace

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: See formulas (XP)

    Use this function?

    Option Explicit
    Public Function ShowFormula(rngIn As Range) As String
    If rngIn.HasFormula Then
    ShowFormula = rngIn.Formula
    Else
    ShowFormula = rngIn.Value
    End If
    End Function
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •