Mollethewizard
IS-IT--Management
This maybe very simple – but anyway – I’ve got a workbook with a modeless user form with a button that closes this particular workbook. Code goes like this:
Application.ActiveWorkbook.Close Savechanges:=False
That’s all right providing the workbook is activated. Is there a simple way to assign the workbook to a variable when the workbook opens that I can call later regardless what workbook is activated at the moment I press the button on the user form?
Something with an object-variable I presume...
Could someone help, please?
Mollethewizard
Application.ActiveWorkbook.Close Savechanges:=False
That’s all right providing the workbook is activated. Is there a simple way to assign the workbook to a variable when the workbook opens that I can call later regardless what workbook is activated at the moment I press the button on the user form?
Something with an object-variable I presume...
Could someone help, please?
Mollethewizard