Userform zoom ignores wordwarp properties

CsJHUN

Active Member
Joined
Jan 13, 2015
Messages
360
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Mobile
Hello guys,
It was a very long time ago to not asking help with VBA.
I face the problem described below:
I made userform for my company to test our employee knowledge. 1 question on label.caption , 2 or 3 optionbutton with possible answers, and 1 imgbox w/ or w/o image loaded depending on the questions. The questions are written in excel sheet, 1 column for question and 3 more for possible answers (and there was 4 more for another language), and one for the picture link (the picture name).
The problem is I - let me call this - develop on a 13" company laptop but the users use the 'program' on 17"+ possible touchscreen i made a resize macro which i use often for different forms. Here it is:
VBA Code:
Private Sub resize_me()
uf_alap_magas = Me.Height
uf_alap_szel = Me.Width
ablak_magas = Application.Height - 10
ablak_szel = Application.Width - 10
arany_magas = ablak_magas / uf_alap_magas
arany_szel = ablak_szel / uf_alap_szel
Me.Zoom = arany_magas * 100 + 10
   Me.Height = ablak_magas + 10
   Me.Width = ablak_szel + 10
   Me.Top = 0
   Me.Left = 0
End Sub
When using the above code when zoom is setted (over 100%, not tested below that) the optionbuttons.caption is not warping words long text, but the wordwarp option is enabled but all good on 100% zoom.

Do you have ideas how to fix that any workarounds, what/why should cause this phenomenon?
 
Last edited by a moderator:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,214,810
Messages
6,121,690
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top