Consulting

Results 1 to 2 of 2

Thread: Cell Value vs Text

  1. #1
    VBAX Regular
    Joined
    Oct 2012
    Posts
    35
    Location

    Cool Cell Value vs Text

    Hello Everyone,

    I had a quick question. If I want to pull the text value of a cell vs the Actual Value, how do I do that. For example, I am use to using something like
    Worksheets("Sheet2").Cells(6, 4).Value
    Say the Cell Text is =2+2. The above would provide a Value of 4. How would I select the text of the cell, to get the "=2+2"?

    Thanks,
    Sean

  2. #2
    VBAX Mentor Teeroy's Avatar
    Joined
    Apr 2012
    Location
    Sydney, Australia
    Posts
    414
    Location
    Use the .Formula property:

    Worksheets("Sheet2").Cells(6, 4).Formula
    _________________________________________________________________________
    "In theory there is no difference between theory and practice. In practice there is." - Chuck Reid

    Any day you learn something new is a day not wasted.

Posting Permissions

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