Welcome to the Forum! Please read this topic to learn how to post your code correctly along with other useful info for newcomers.

This appears to be an MS Office question, not a Java question, so...