I am trying to add some vbscript code to auto populate 2 fields with XY coordinates based on when the onLoad event. I get an error if I start the script with Option Explicit or Sub in the area designated for the script....Nothing is wrong with the syntax yet I keep getting the error. Can anyone help?