Hi all,

I have a Workbook_Open code, which I would like to "Knock Out" with the following line sometimes...


If Not ActiveWorkbook.Name = "MyFile 21-05-2019.xlsm" Then

'do something

End if
but obviously the file name has a date in it which changes..

Is it possible to do a wildcard thing to ovecome this?

(Its part of a big project, involving a save as - under a different name and stripping the sheets the Workbook_Open refers to, hence the KO line)

Thanks!