+ Reply to Thread
Results 1 to 2 of 2

how do i create a macro that would check the contents of cells

  1. #1
    Jade
    Guest

    how do i create a macro that would check the contents of cells

    Hi, I am stcuk on Excel VB. I am trying to create a macro that when run would
    check to see if there is an 'X' in 6 specific cells on a row(the cells are
    next to each other), there is an X in all of them it would then display a msg
    saying 'not possible', else it would not doing anything. I hope i did pass
    the problem across in a sensible manner. Thanks for helping.

  2. #2
    Dave Peterson
    Guest

    Re: how do i create a macro that would check the contents of cells

    I'd just use another cell next to those 6 cells:

    =if(countif(a1:f1,"x")=6,"Not Possible","")

    Format it in a nice big red font.

    Jade wrote:
    >
    > Hi, I am stcuk on Excel VB. I am trying to create a macro that when run would
    > check to see if there is an 'X' in 6 specific cells on a row(the cells are
    > next to each other), there is an X in all of them it would then display a msg
    > saying 'not possible', else it would not doing anything. I hope i did pass
    > the problem across in a sensible manner. Thanks for helping.


    --

    Dave Peterson

+ 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