Hi I am trying to write a macro that will put text into the nominated cell. The macro needs to look at 3 cells in a range, on my worksheet they are D35, D36 and D37. If one of these cells contains the phrase "Hypothesis Null Rejected" then the macro should return the Phrase A. If all three cells = "hypothesis null not rejected" then the macro should return phrase B.
My problem is that I can't get it to look at all three, it only returns a phrase based on the 3rd cell. I don't know how to fix this.
This is the code I am using;
I should probably tell you that I have only been writing VBA code for exactly a week now. I am self-taught and basically fumbling in the dark, so any help would be great!!!!!Please Login or Register to view this content.
Bookmarks