Hello,
I have a VBA code for a worksheet help me to increase the window zoom when I select the drop down menu. With this code I can see the drop down menu text in appropriate font size. Here is the code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating =False
On Error GoTo LZoom
Dim xZoom As Long
xZoom = 63
If Target.Validation.Type =xlValidateList Then xZoom = 100
LZoom:
ActiveWindow.Zoom = xZoom
Application.ScreenUpdating =False
End Sub
This code works perfect in my monitor. However, The file will be opened in different size of the monitor as well as different resolutions. For other worksheets without the dropdown menu list I have a code to define the active window based on table width. for example:
Range("A1:J1").select
ActiveWindow.zoom = true
Could you please help know if I can define a range of cells (in my VBA code for drop down menu size) instead of one zoom percentage number ?
Many thanks in advance.
Glad
I have a VBA code for a worksheet help me to increase the window zoom when I select the drop down menu. With this code I can see the drop down menu text in appropriate font size. Here is the code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating =False
On Error GoTo LZoom
Dim xZoom As Long
xZoom = 63
If Target.Validation.Type =xlValidateList Then xZoom = 100
LZoom:
ActiveWindow.Zoom = xZoom
Application.ScreenUpdating =False
End Sub
This code works perfect in my monitor. However, The file will be opened in different size of the monitor as well as different resolutions. For other worksheets without the dropdown menu list I have a code to define the active window based on table width. for example:
Range("A1:J1").select
ActiveWindow.zoom = true
Could you please help know if I can define a range of cells (in my VBA code for drop down menu size) instead of one zoom percentage number ?
Many thanks in advance.
Glad