Hi,
I created a form in EXCEL 2000 and I had code to put the form in the middle of screen. The code ran ok in 2000 but it has problem in EXCEL 97. The error message is " Object doesn't support this property or method".
How to make the code change to fit both EXCEL 97 and EXCEL 2000?
Here is my code:
frm_Main.Left = (ActiveWorkbook.Width - frm_Main.Width) / 2
frm_Main.Top = (ActiveWorkbook.Height - frm_Main.Height) / 2
Thank you in advance
I created a form in EXCEL 2000 and I had code to put the form in the middle of screen. The code ran ok in 2000 but it has problem in EXCEL 97. The error message is " Object doesn't support this property or method".
How to make the code change to fit both EXCEL 97 and EXCEL 2000?
Here is my code:
frm_Main.Left = (ActiveWorkbook.Width - frm_Main.Width) / 2
frm_Main.Top = (ActiveWorkbook.Height - frm_Main.Height) / 2
Thank you in advance