If you need to avoid sneezing:
Press your finger hard against the base of your nose and your upper lip. By doing so you activate the special nerves that intercept the signal your brain sends out to make you sneeze.