I'm currently trying to add a name from a form onto an email on Outlook. However I can only capture from one worksheet which works successfully:
.Subject = "New Form Name: - " & Worksheets("Form1").Range("C50")
However I want the code to be able to check if another worksheet in a different field has been filled out and to use the one which had data in it.
I've tried this (using Or), but with no luck:
.Subject = "New Form Name - " & Worksheets("Form1").Range("C50") Or Worksheets("Form2").Range("A25") Or Worksheets("Form3").Range("B19")
The above goes not generate anything in the Subject line of the email.
Is there a way for it to show which has data in one of the worksheets and to capture this.
Any help would be great!