Hello All,
how can I re-size a worksheet and it's ActiveX buttons based on a user's PC resolution? Is there a way to reliably detect the screen resolution and adjust the worksheet with the ActiveX controls?
I have developed a worksheet with ActiveX controls in resolution 1600 x 900. When a user opens this workbook the worksheet is large and some of the ActiveX controls are off the screen.
In the Public Sub Workbook_Open() I have
Range("A1").Select
Range("Z34").Select
ActiveWindow.FreezePanes = True
Columns("Y:Y").ColumnWidth = 11.29
Rows("33:33").RowHeight = 39
Sheets("Main_Sheet").Select
Range("A1").Select
ActiveWindow.Zoom = 105
I tried several solutions from various forums. None have been very effective and most unreliable. Controls shift around overlap, etc.
Thanks in advance for any help.
how can I re-size a worksheet and it's ActiveX buttons based on a user's PC resolution? Is there a way to reliably detect the screen resolution and adjust the worksheet with the ActiveX controls?
I have developed a worksheet with ActiveX controls in resolution 1600 x 900. When a user opens this workbook the worksheet is large and some of the ActiveX controls are off the screen.
In the Public Sub Workbook_Open() I have
Range("A1").Select
Range("Z34").Select
ActiveWindow.FreezePanes = True
Columns("Y:Y").ColumnWidth = 11.29
Rows("33:33").RowHeight = 39
Sheets("Main_Sheet").Select
Range("A1").Select
ActiveWindow.Zoom = 105
I tried several solutions from various forums. None have been very effective and most unreliable. Controls shift around overlap, etc.
Thanks in advance for any help.