Hi,
I have a need to for some code to check what workbook the code is being run on....in other words...I need it to say "if the ActiveWorkbook is X then do the following, else, do this." The thing is, I can't use workbook X's Name, as it changes quite frequently....so i'm looking for another way to check and see if workbook x is the active workbook. Under workbook properties, you have things like Author, Subject, etc. Can I call these properties from within a macro to check and see if the workbook in question is my special "X" workbook? (The name of the workbook may change, but the subject line in properties will not and is unique.)
Thanks,
Jason
I have a need to for some code to check what workbook the code is being run on....in other words...I need it to say "if the ActiveWorkbook is X then do the following, else, do this." The thing is, I can't use workbook X's Name, as it changes quite frequently....so i'm looking for another way to check and see if workbook x is the active workbook. Under workbook properties, you have things like Author, Subject, etc. Can I call these properties from within a macro to check and see if the workbook in question is my special "X" workbook? (The name of the workbook may change, but the subject line in properties will not and is unique.)
Thanks,
Jason