kaismum Posted September 13, 2006 Share Posted September 13, 2006 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"endwhat 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 More sharing options...
jondercik Posted September 13, 2006 Share Posted September 13, 2006 Basically the format of if then else isif <condition> then <statements>else <statements>endif Link to comment Share on other sites More sharing options...
CoffeeFiend Posted September 13, 2006 Share Posted September 13, 2006 (edited) . Edited November 7, 2006 by crahak Link to comment Share on other sites More sharing options...
CoffeeFiend Posted September 14, 2006 Share Posted September 14, 2006 (edited) . Edited November 7, 2006 by crahak Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now