+ Reply to Thread
Results 1 to 3 of 3

Cell Types

  1. #1
    Kaval
    Guest

    Cell Types

    I am looking for the VB equivalent to the cell type function. That is, I need
    to determine if a particular cell contains a formula, a number, text or is
    blank.

    I guess it has to do with SpecialCells but I cant work it out.

    Thanks, Kaval

  2. #2
    Norman Jones
    Guest

    Re: Cell Types

    Hi Kaval,

    Try:

    dim rCell As Range

    If HasFormula.rCell Then ' Formula

    If Application.IsNumber(rCell.Value) Then ' Number

    If Application.IsText(rCell.Value) Then ' Text

    If IsEmpty(rCell.Value) Then ' Empty


    ---
    Regards,
    Norman



    "Kaval" <[email protected]> wrote in message
    news:[email protected]...
    >I am looking for the VB equivalent to the cell type function. That is, I
    >need
    > to determine if a particular cell contains a formula, a number, text or is
    > blank.
    >
    > I guess it has to do with SpecialCells but I cant work it out.
    >
    > Thanks, Kaval




  3. #3
    Norman Jones
    Guest

    Re: Cell Types

    Hi Kaval,

    > If HasFormula.rCell Then ' Formula


    Should be

    If rCell.HasFormula ' Formula


    ---
    Regards,
    Norman



    "Norman Jones" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi Kaval,
    >
    > Try:
    >
    > dim rCell As Range
    >
    > If HasFormula.rCell Then ' Formula
    >
    > If Application.IsNumber(rCell.Value) Then ' Number
    >
    > If Application.IsText(rCell.Value) Then ' Text
    >
    > If IsEmpty(rCell.Value) Then ' Empty
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Kaval" <[email protected]> wrote in message
    > news:[email protected]...
    >>I am looking for the VB equivalent to the cell type function. That is, I
    >>need
    >> to determine if a particular cell contains a formula, a number, text or
    >> is
    >> blank.
    >>
    >> I guess it has to do with SpecialCells but I cant work it out.
    >>
    >> Thanks, Kaval

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1