Relative Content

Tag Archive for excelvbams-office

UserForm.Show activates another workbook in Excel VBA

I assign keyboard shortcut to open a VBA UserForm in Excel. For some reason when UserForm is shown Excel activates the workbook which was active the first time the UserForm was shown. The code is vanilla. Does anyone know why it happens and how to fix it?