The page where you want to execute the code. If the formula is in page one place the code in the IDE also on page one.