+ Reply to Thread
Results 1 to 11 of 11

[solved] Cant get it to work, should be simple???

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    [solved] Cant get it to work, should be simple???

    I have 4 cells cells that need to be compared. 2 of the cells need to be larger then the other 2 or it needs to kick out an error message. This is what I came up with but it just continues throwing an error message even if the cells meet the criteria listed..Here is what I have
    Please Login or Register  to view this content.
    Last edited by wiskydiver25; 12-15-2012 at 02:52 AM.

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Cant get it to work, should be simple???

    try this
    Please Login or Register  to view this content.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Cant get it to work, should be simple???

    doesnt seem to work at all....

  4. #4
    Registered User
    Join Date
    12-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Cant get it to work, should be simple???

    Im sorry it does work.. that you very much....however, it only works if I click the cell...these cells will be auto filled formula and locked from users. Is there a way for it to work like a macro, with maybe a button that is used to run it?

  5. #5
    Registered User
    Join Date
    12-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Cant get it to work, should be simple???

    If I can turn this into a macro, i know how to do the button

  6. #6
    Registered User
    Join Date
    12-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Cant get it to work, should be simple???

    also, how would I add a message for the conditions being met?

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Cant get it to work, should be simple???

    Quote Originally Posted by wiskydiver25 View Post
    If I can turn this into a macro, i know how to do the button
    Maybe:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Cant get it to work, should be simple???

    I tried this alteration from what I posted previously as well, same result...continues to give the error message even when it shouldnt.....the code Sean provided works well, but I am wondering how to convert the code into a macro, or if that is even possible?

    Any thoughts

  9. #9
    Registered User
    Join Date
    12-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Cant get it to work, should be simple???

    Thank you john, yes it does work as a macro! Woot Woot. All problems solved

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Cant get it to work, should be simple???

    wiskydiver, i am glad you got a solution to your question

    2 points i want to make though...

    1. for future reference, please name your thread to something more meaningful, that actually describes your problem. lots of contributors will look at a thread title, and if it of interest to them, or falls within their area of expertise, and will only open those threads. also, searching for "help" will not turn up too many results that will benefit you, sorry

    2. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Cant get it to work, should be simple???

    Quote Originally Posted by wiskydiver25 View Post
    Thank you john, yes it does work as a macro! Woot Woot. All problems solved
    You're welcome. Glad to help out, and thanks for the feedback.

+ 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