If... Then... Else to check for a reference file attachment

I have a VBA function that runs when a design file is opened and closed. However, I need to add a IF... Then... Else statement that checks to see if there is a reference file attached when the design file is opened. If the reference file is attached, then turn the reference file display off. Else attach the reference file and turn the display off.

I have a VBA function that attaches the reference file that works perfectly. And the VBA function that runs when a design file is open or closed works great. I just need to get them to work perfectly together.

I cannot seem to get this IF.. THEN... ELSE statement right. Can anyone help?

Parents Reply Children
No Data