You’ve asked this question before. Saying “Lord” in the situation you’ve described is technically a prayer and therefore not using the Lord’s name in vain. The only way to use the Lord’s name in a sinful way is when you substitute it for/ use it as a curse word.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.