Pop up window

emilemil22

New Member
Joined
Aug 18, 2019
Messages
27
I am making a userform in excel using VBA.

I want whenver a textbox1 is left blank after clicking a save button a pop up window is trigerred saying "the textboox1 cannot be left blank"

I know how to do this

Function ValidateForm() As Boolean
ValidateForm = True

If Trim(a1.Value) = "" Then
MsgBox "Question number 1.1 can't be left blank.", vbOKOnly + vbInformation, "Name"

However, I want the MsgBox to be in another language (Russian), however when I write it in Russian in macros it simly appears as question marks "???????????" and respectvely in pop up window the message appears in question marks.

Does anyone have a solution for this?


Many thanks,
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
The VB Editor doesn't support unicode characters so you will first need to change the language for non-unicode programs as follows :

1- Go to Control Panel
2- Administrative Tab
3- Change System Locale
4- Select the language (Arabic in your case)
5-Reboot your computer for the new settings to take effect.
6- In the VBA Editor,go to Tools>Options>Editor Format> and choose Russian(or Cyrillic) font

Now you should be able to write code
 
Upvote 0
Sorry I meant : Russian in Point #4 (Not Arabic which is the one I use)
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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