Jump to content

help with using if then else function in VBA


Recommended Posts

Hoping someone can help me do the following....

I have a macro named "getrawdata" that is already working, however, I would like to use the if then else function to activate this macro depending on a given criteria... in plain english it would look like...

If cell B7 >= cell B5

then display message .."data current"

else cell B7 < cell B5

then run macro "getrawdata"

end

what would be the correct VBA coding for this? and how do I enter this in the workbook??

Looking forward to a reply..

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...