79313067

Date: 2024-12-28 01:52:07
Score: 1.5
Natty:
Report link

Dim varSearchTerm as String

Perhaps shorten the first string search in the subject as indicated with a *wildcard. (is an attachment in the subject?) And concate the end string in the varSearchTerm with a wildcard either side of this one. No 2nd wildcard needed if all total strings end the same way.

Regarding wildcard concated around a string in a generic formula as in your example

"" & varSearchTerm & "" Is a technique in standalone Excel formulas. Wildcard stars are omitted from inside the two sets of speech marks when posted.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: James Martin