+ Reply to Thread
Results 1 to 2 of 2

Issue with If Statement based greater than in macro

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    8

    Issue with If Statement based greater than in macro

    I am trying to run a macro that checks to see if an increment has increased above and threshold and then increment another value. I want to implement:
    Please Login or Register  to view this content.
    But when I run the macro with a value less than 12 it still runs as if the statement was TRUE and completes the increment. The only way that I can get it to run is to go with:

    Please Login or Register  to view this content.
    What I am doing wrong?

    Thanks,

    Dave
    Last edited by tiggerzen; 02-07-2012 at 12:15 PM. Reason: Comply with forum rules

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Issue with If Statement based greater than in macro

    Hello tiggerzez and welcome to the forum.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Last edited by Mordred; 02-07-2012 at 11:01 AM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

+ 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