Is the Arduino actually on COM7? Or is that the code from another setup and your device is on a different port?
When you see an error in highlight execution mode look at the code that comes before the error. In your case there's only that COM port setting, so...good place to start!