+ Reply to Thread
Results 1 to 2 of 2

presence of SOMETHING in a range of cells

  1. #1
    MD
    Guest

    presence of SOMETHING in a range of cells

    Good morning,

    How can I put in a simple logic test if a range of cells has anything in
    them (numbers or text). Say range("a1:a5") the cell A1 has something in it
    then do this... if range(a1:a5") is empty then do that instead...

    regards,

    Michel



  2. #2
    Bob Phillips
    Guest

    Re: presence of SOMETHING in a range of cells


    If application.counta(range("A1:A5")) > 0 Then
    '...

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "MD" <[email protected]> wrote in message
    news:[email protected]...
    > Good morning,
    >
    > How can I put in a simple logic test if a range of cells has anything in
    > them (numbers or text). Say range("a1:a5") the cell A1 has something in

    it
    > then do this... if range(a1:a5") is empty then do that instead...
    >
    > regards,
    >
    > Michel
    >
    >




+ 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