Login

Welcome, Guest. Please login or register.

December 22, 2024, 05:20:53 pm

Author Topic: If...Then VBA help!  (Read 5114 times)  Share 

0 Members and 1 Guest are viewing this topic.

TrueTears

  • TT
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 16363
  • Respect: +667
If...Then VBA help!
« on: March 25, 2012, 03:22:19 am »
0
Hey guys, just stuck on the following problem :(



My code is the following:



However I am stuck on condition 3! I can not think of a good way to code it, can anyone please help?

Thanks so much!



The first image is a bit small, so I've attached it.



Okay, I think I actually got it lol, is this right? It seems to work when i run the program, but just gonna double check.




« Last Edit: March 25, 2012, 04:02:08 am by TrueTears »
PhD @ MIT (Economics).

Interested in asset pricing, econometrics, and social choice theory.