Sorry - I don.'t understand.
You declare a variable as type X (Workbook is this case)
You assign a workbook object to the variable if the test for wb.name like "whatever*" is True
You use that variable to refer to your workbook in code.
Maybe if you post your code.
So if I used your above piece of code, I then need to actually set that workbook and a worksheet within it as a variable so that I can actually use it - so would I need to do something like this, for example?
This doesn't seem to be working, and I'm a little confused