errors to turn red by clicking on any other line in your module.
Keep in mind that
lines that end with an un derscore are con tinued on the next line, so you have to
hit En ter after the whole line is finished, or you have to click
on a different line to
get the er ror to turn red.
One common mistake is to type a line and im mediately switch back to
PowerPoint to test out your pro cedure. If you do this with out hit ting En ter or
clicking on an other line,
you will miss the red, and your procedure will not work.
The line still will be red when you get back to the VBA Ed itor, but you will have
wasted the time go ing back to PowerPoint, run ning
your pro cedure, and scratch-
ing your head for a few seconds while trying to fig ure out what went wrong.
Usually, with errors that turn red, you will also get a message right away
that tells you something about the error.
For ex ample, Figure 9.1 shows a typ ical
error.
Do'stlaringiz bilan baham: