Vba excel все буквы заглавные

Смена регистра буквенных символов в VBA Excel с помощью функции StrConv. Преобразование всех букв в верхний или нижний регистр, а также первых букв каждого слова в верхний.

StrConv – это функция, которая возвращает текстовое значение после преобразования исходного строкового выражения в соответствии с указанным типом выполняемого преобразования.

В VBA Excel доступны следующие типы преобразования:

  • символов строки в верхний или нижний регистр;
  • однобайтовых символов в двухбайтовые и обратно;
  • знаков хирагана в катакана и наоборот (формы японской слоговой азбуки);
  • символов строки из формата системной кодовой страницы по умолчанию в Юникод и обратно.

Далее рассмотрим только преобразование букв в верхний или нижний регистр, используя сокращенный синтаксис функции StrConv. Со всеми возможностями этой функции вы можете ознакомиться на сайте разработчика.

Синтаксис функции StrConv

Синтаксис и параметры

StrConv(string, conversion)

  • string – исходное строковое выражение;
  • conversion – тип преобразования.

Тип преобразования

Для смены регистра букв используются следующие типы преобразования (conversion):

Константа Значение Описание
vbUpperCase 1 преобразование всех символов исходной строки в верхний регистр
vbLowerCase 2 преобразование всех символов исходной строки в нижний регистр
vbProperCase 3 преобразование первой буквы каждого слова исходной строки в верхний регистр

Примеры кода VBA Excel

Пример 1

Стандартное преобразование регистра букв:

Sub Primer1()

Dim a, b, c

a = StrConv(«чиСтота – зАЛОг здОроВья», 1)

b = StrConv(«чиСтота – зАЛОг здОроВья», 2)

c = StrConv(«чиСтота – зАЛОг здОроВья», 3)

MsgBox a & vbNewLine & b & vbNewLine & c

‘Результат:

‘ЧИСТОТА – ЗАЛОГ ЗДОРОВЬЯ

‘чистота – залог здоровья

‘Чистота – Залог Здоровья

End Sub

Обратите внимание, что при указании типа преобразования vbProperCase (3), не только первые буквы слов преобразуются в верхний регистр, но и все остальные – в нижний.

Пример 2

Преобразование только первой буквы предложения в заглавную (в верхний регистр):

Sub Primer2()

Dim a, b

a = «чиСтота – зАЛОг здОроВья»

‘преобразуем все символы в нижний регистр

a = StrConv(a, 2)

‘извлекаем первую букву предложения и

‘преобразуем ее в верхний регистр

b = StrConv(Left(a, 1), 1)

‘заменяем первую букву в предложении

a = b & Mid(a, 2)

MsgBox a

‘Результат: «Чистота – залог здоровья»

End Sub

То же самое, но немного по-другому:

Sub Primer2()

Dim a

a = «чиСтота – зАЛОг здОроВья»

‘преобразуем все символы в нижний регистр

a = StrConv(a, 2)

‘заменяем первую букву в предложении этой же буквой,

‘преобразованной в верхний регистр

a = Replace(a, Left(a, 1), StrConv(Left(a, 1), 1), 1, 1)

‘смотрим результат

MsgBox a

End Sub

Подробнее о функции Replace в следующей статье.

Excel VBA StrConv Function

The StrConv function in VBA comes under String functions, a conversion function. One may use this function because it changes the case of the string with the input provided by the developer. In addition, the arguments of this function are the string. So, for example, the input for a case like 1 is to change the string to lowercase.

StrConv stands for “String Conversion.” We can convert the supplied string to the specified format using this VBA functionVBA functions serve the primary purpose to carry out specific calculations and to return a value. Therefore, in VBA, we use syntax to specify the parameters and data type while defining the function. Such functions are called user-defined functions.read more. You need to understand that we can use this formula as a VBA function only, not as an Excel worksheet function. This article will tour detailed examples of the “VBA StrConv” formula.

Look at the syntax of the StrConv function.

VBA StrConv syntax

String: This is nothing but the text we are trying to convert.

Conversion: What kind of conversion do we need to do? We have a wide variety of options. Here, below is the list of conversions we can perform.

  • vbUpperCase or 1: This option converts the supplied Text value to upper case character. It works similarly to the UCASE function. For example, if you supply the word “Excel,” it will convert to “EXCEL.”
  • vbLowerCase or 2: This option converts the supplied Text value to lowercase character in excelThere are six methods to change lowercase in excel — Using the lower function to change case in excel, Using the VBA command button, VBA shortcut key, Using Flash Fill, Enter text in lower case only, Using Microsoft word.
    read more
    . It works similarly to the LCASE function. For example, if you supply the word “Excel,” it will convert to “excel.”
  • vbProperCase or 3: This option converts the supplied Text value to the proper case character. Every first character of the word converts to uppercase. All the remaining letters convert to lowercase. For example, if you supply the word “excEL,” it will convert to “Excel.”
  • vbUniCode or 64: This option converts the string to Unicode code.
  • vbFromUnicode or 128: It converts the string Unicode to the default system code.

Even though we have several other options with the Conversion argument above, three are good enough for us.

LCID: This is the Locale ID. By default, it takes the system ID. It will not use 99% of the time.

Table of contents
  • Excel VBA StrConv Function
    • Examples of StrConv Function in VBA
      • Example #1
      • Example #2
      • Example #3
      • Example #4
    • Recommended Articles

VBA StrConv

You are free to use this image on your website, templates, etc, Please provide us with an attribution linkArticle Link to be Hyperlinked
For eg:
Source: VBA StrConv (wallstreetmojo.com)

You are free to use this image on your website, templates, etc, Please provide us with an attribution linkArticle Link to be Hyperlinked
For eg:
Source: VBA StrConv (wallstreetmojo.com)

Examples of StrConv Function in VBA

You can download this VBA StrConv Function Template here – VBA StrConv Function Template

Example #1

Now, look at the example of converting the string to the UPPER CASE character. We are using the word “Excel VBA” here. Below is the VBA codeVBA code refers to a set of instructions written by the user in the Visual Basic Applications programming language on a Visual Basic Editor (VBE) to perform a specific task.read more.

Code:

Sub StrConv_Example1()

    Dim TextValues As String
    Dim Result As String

    TextValues = "Excel vba"

    Result = StrConv(TextValues, vbUpperCase)

    MsgBox Result

End Sub

VBA StrConv Example 1

It will convert the string “Excel VBA” to upper case.

Run this code using the F5 key or manually and see the result.

VBA StrConv Example 1-1

Example #2

Now, take a look at the same string with lowercase conversion. Below is the code.

Code:

Sub StrConv_Example2()

    Dim TextValues As String
    Dim Result As String

    TextValues = "Excel vba"

    Result = StrConv(TextValues, vbLowerCase)

    MsgBox Result

End Sub

VBA StrConv Example 2

It will convert the string “Excel VBA” to a lowercase.

You can run it manually or through excel shortcut keyAn Excel shortcut is a technique of performing a manual task in a quicker way.read more F5. Below is the result.

VBA StrConv Example 2-1

Example #3

Now, take a look at the same string with proper case conversion. Below is the code.

Code:

Sub StrConv_Example3()

    Dim TextValues As String
    Dim Result As String

    TextValues = "Excel vba"

    Result = StrConv(TextValues, vbProperCase)

    MsgBox Result

End Sub

Example 3

It will convert the string “Excel VBA” to a proper case. Every first letter of the string is upper case. Moreover, it converts every letter after space to uppercase. All the remaining characters convert to lowercase. Below is the result of the same.

Example 3-1

Example #4

Now, look at the Unicode character’s example. Look at the below code.

Code:

Sub StrConv_Example4()

  Dim i As Long
  Dim x() As Byte
  x = StrConv("ExcelVBA", vbFromUnicode)
  For i = 0 To UBound(x)
  Debug.Print x(i)
 Next

End Sub

It will print all the Unicode characters to the immediate window.

Example 4

In ASCII code, “E” Unicode is 69, “x” Unicode is 120, and so on. Like this, using VBA StrConv, we can convert the string to Unicode.

Example 4-1

Recommended Articles

This article has been a guide to VBA StrConv. Here, we learn how to use the VBA StrConv function to convert the supplied string to the specified format, along with practical examples and a downloadable Excel template. Below you can find some useful Excel VBA articles: –

  • VBA Operators
  • VBA Charts
  • VBA Boolean Operator
  • VBA End

Return to VBA Code Examples

In this Article

  • UCase – Convert String to Upper Case
  • LCase – Convert String to Lower Case
  • StrConv – Convert String to Proper Case
  • StrConv – Convert String to Upper or Lower Case
  • VBA Upper, Lower, and Proper Case – Case Functions in Access

This tutorial will demonstrate how to use the UCASE, LCASE and STRCONV functions in VBA.

While working in VBA, you often need to convert strings into lowercase, uppercase or proper case. This is possible by using the UCase, LCase and StrConv functions.

These functions are important when manipulating strings in VBA, as VBA is case sensitive. If you wish to make VBA case-insensitive, you need to add Option Compare Text at the top of your module. You can find out more about this here: Prevent VBA Case Sensitive

UCase – Convert String to Upper Case

The UCase function in VBA converts all letters of a string into uppercase. There is only one argument, which can be a string, variable with string or a cell value. This function is often used if you want to compare two strings. Here is the code for the UCase function:

Dim strText As String
Dim strTextUCase As String

strText = "running Uppercase function"

strTextUCase = UCase(strText)

MsgBox strTextUCase

In the example, we want to convert all letters of the strText variable to upper case and assign the converted string to the strTextUCase variable. At the end we call the message box with the converted string:vba-uppercase-function

LCase – Convert String to Lower Case

If you want to convert all letters of a string into lower cases, you need to use the LCase function. This function has one argument, the same as the UCase. This is the code for the LCase function:

Dim strText As String
Dim strTextLCase As String

strText = "RUNNING lowerCASE FUNCTION"

strTextLCase = LCase(strText)

MsgBox strTextLCase

In this example, we convert all letters of the string variable strText into lower case. After that, the converted string is assigned to the variable strTextLCase.

vba-lowercase-function

StrConv – Convert String to Proper Case

The StrConv function enables you to convert a string of text into proper case. The function has two arguments. First is the string that you want to convert. The second is the type of the conversion which you want. In order to convert a string to a proper case, you need to set it to vbProperCase. The code for the function is:

Dim strText As String
Dim strTextProperCase As String
    
strText = "running proper case function"
    
strTextProperCase = StrConv(strText, vbProperCase)
    
MsgBox strTextProperCase

You will see on the example how the function works. It takes the string from the cell B1, converts it to proper case and returns the value in the cell A1.

vba-proper-case-function

StrConv – Convert String to Upper or Lower Case

Using the StrConv function, you can also convert a string to upper or lower cases. To do this, you just need to set the second argument to the vbUpperCase or vbLowerCase:

strTextConverted = StrConv(strText, vbUpperCase)
strTextConverted = StrConv(strText, vbLowerCase)

VBA Upper, Lower, and Proper Case – Case Functions in Access

All of the above examples work exactly the same in Access VBA as in Excel VBA.

Private Sub ClientName_AfterUpdate()
   'this will convert the text in the client name box to uppercase
   Me.ClientName = UCase(Me.ClientName)
End Sub

vba ucase access

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro — A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!
vba save as

Learn More!

Главная » Функции VBA »

28 Апрель 2011              351422 просмотров

  • ASC()— эта функция позволяет вернуть числовой код для переданного символа. Например, ASC("D") вернет 68. Эту функцию удобно использовать для того, чтобы определить следующую или предыдущую букву. Обычно она используется вместе с функцией Chr(), которая производит обратную операцию — возвращает символ по переданному его числовому коду.Варианты этой функции — AscB() и AscW():
    • AscB() — возвращает только первый байт числового кода для символа.
    • AscW() — возвращает код для символа в кодировке Unicode
  • Chr() — возвращает символ по его числовому коду. Может использоваться в паре с функцией Asc(), но чаще всего её применяют, когда нужно вывести служебный символ (например кавычки — "), т.к. кавычки просто так в VBA-коде не ввести(нужно ставить двойные). Я обычно именно эту функцию и использую.
        Dim sWord As String
        sWord = Chr(34) & "Слово в кавычках" & Chr(34)

    Есть варианты этой функции — ChrB() и ChrW(). Работают аналогично таким же вариантам для функции Asc().

  • InStr() и InStrRev()— одна из самых популярных функций. Позволяет обнаружить в теле строковой переменной символ или последовательность символов и вернуть их позицию. Если последовательность не обнаружена, то возвращается 0.
        Dim sStr As String
        sStr = "w"
        If InStr(1, "Hello, World!", sStr, vbTextCompare) > 0 Then
            MsgBox "Искомое слово присутствует!"
        Else
            MsgBox "Искомое слово отсутствует!"
        End If

    Разница функций в том, что InStr() ищет указанное слово от начала строки, а InStrRev() с конца строки

  • Left(), Right(), Mid()— возможность взять указанное вами количество символов из существующей строковой переменной слева, справа или из середины соответственно.
        Dim sStr As String
        sStr = "Hello, World!"
        MsgBox Mid(sStr, 1, 5)
  • Len() — возможность получить число символов в строке. Часто используется с циклами, операциями замены и т.п.
  • LCase() и UCase() — перевести строку в нижний и верхний регистры соответственно. Часто используется для подготовки значения к сравнению, когда при сравнении регистр не важен (фамилии, названия фирм, городов и т.п.).
  • LSet() и RSet() — возможность заполнить одну переменную символами другой без изменения ее длины (соответственно слева и справа). Лишние символы обрезаются, на место недостающих подставляются пробелы.
  • LTrim(), RTrim(), Trim() — возможность убрать пробелы соответственно слева, справа или и слева, и справа.
  • Replace()— возможность заменить в строке одну последовательность символов на другую.
        Dim sStr As String
        sStr = "Hello, World!"
        MsgBox Replace(sStr, "Hello", "Bay")
  • Space() — получить строку из указанного вами количества пробелов;
    Еще одна похожая функция — Spc(), которая используется для форматирования вывода на консоль. Она размножает пробелы с учетом ширины командной строки.
  • StrComp() — возможность сравнить две строки.
  • StrConv() — возможность преобразовать строку (в Unicode и обратно, в верхний и нижний регистр, сделать первую букву слов заглавной и т.п.):
        Dim sStr As String
        sStr = "Hello, World!"
        MsgBox StrConv("Hello, World!", vbUpperCase)

    В качестве второго параметра параметра могут применяться константы:

    • vbUpperCase: Преобразует все текстовые символы в ВЕРХНИЙ РЕГИСТР
    • vbLowerCase: Преобразует все текстовые символы в нижний регистр
    • vbProperCase: Переводит первый символ каждого слова в Верхний Регистр
    • *vbWide: Преобразует символы строки из однобайтовых в двухбайтовые
    • *vbNarrow: Преобразует символы строки из двухбайтовых в однобайтовые
    • **vbKatakana: Преобразует символы Hiragana в символы Katakana
    • **vbHiragana: Преобразует символы Katakana в символы Hiragana
    • ***vbUnicode: Преобразует строку в Юникод с помощью кодовой страницы системы по умолчанию
    • ***vbFromUnicode: Преобразует строку из Юникод в кодовую страницу системы по умолчанию
    • * применимо для локализацией Дальнего востока
      ** применимо только для Японии
      *** не поддерживается операционными системами под управлением Macintosh

  • StrReverse() — «перевернуть» строку, разместив ее символы в обратном порядке. Функция работает только начиная от Excel 2000 и выше. Пример использования функции, а так же иные методы переворачивания слова можно посмотреть в этой статье: Как перевернуть слово?
  • Tab() — еще одна функция, которая используется для форматирования вывода на консоль. Размножает символы табуляции в том количестве, в котором вы укажете. Если никакое количество не указано, просто вставляет символ табуляции. Для вставки символа табуляции в строковое значение можно также использовать константу vbTab.
  • String() — позволяет получить строку из указанного количества символов (которые опять-таки указываются Вами). Обычно используются для форматирования вывода совместно с функцией Len().

Статья помогла? Сделай твит, поделись ссылкой с друзьями!

StrConv Function Description

The VBA StrConv function returns a string converted as specified e.g. to uppercase or lowercase letters.

If you want to format the string instead (dates, numbers, language), use the Format function.

Syntax

The syntax for the STRCONV function in Microsoft Excel is:

StrConv ( text, conversion, [LCID] )

Parameters

string
The string that is to be converted.

conversion
Type of conversion to be performed. List of valid VBA Constants:

Constant Value Description
vbUpperCase 1 Convert string to uppercase letters (acts as UCase function)
vbLowerCase 2 Converts string to lowercase letters (acts as LCase function)
vbProperCase 3 Converts every first letter of every word in the string to uppercase letters, while converting remaining letters to lowercase.
vbUnicode 64 Converts the string to Unicode code.
vbFromUnicode 128 Converts the string from Unicode code to the default coding of the system.

LCID
Optional. The LocaleID, by default assuming the system LocaleID. Available LocaleID values (use Decimal only):

Expand to see LocaleID

Language – Country or Region LCID in Hex LCID in Decimal
Afrikaans – South Africa 0436 1078
Albanian – Albania 041c 1052
Alsatian 0484 1156
Amharic – Ethiopia 045e 1118
Arabic – Saudi Arabia 0401 1025
Arabic – Algeria 1401 5121
Arabic – Bahrain 3c01 15361
Arabic – Egypt 0c01 3073
Arabic – Iraq 0801 2049
Arabic – Jordan 2c01 11265
Arabic – Kuwait 3401 13313
Arabic – Lebanon 3001 12289
Arabic – Libya 1001 4097
Arabic – Morocco 1801 6145
Arabic – Oman 2001 8193
Arabic – Qatar 4001 16385
Arabic – Syria 2801 10241
Arabic – Tunisia 1c01 7169
Arabic – U.A.E. 3801 14337
Arabic – Yemen 2401 9217
Armenian – Armenia 042b 1067
Assamese 044d 1101
Azeri (Cyrillic) 082c 2092
Azeri (Latin) 042c 1068
Bashkir 046d 1133
Basque 042d 1069
Belarusian 0423 1059
Bengali (India) 0445 1093
Bengali (Bangladesh) 0845 2117
Bosnian (Bosnia/Herzegovina) 141A 5146
Breton 047e 1150
Bulgarian 0402 1026
Burmese 0455 1109
Catalan 0403 1027
Cherokee – United States 045c 1116
Chinese – People’s Republic of China 0804 2052
Chinese – Singapore 1004 4100
Chinese – Taiwan 0404 1028
Chinese – Hong Kong SAR 0c04 3076
Chinese – Macao SAR 1404 5124
Corsican 0483 1155
Croatian 041a 1050
Croatian (Bosnia/Herzegovina) 101a 4122
Czech 0405 1029
Danish 0406 1030
Dari 048c 1164
Divehi 0465 1125
Dutch – Netherlands 0413 1043
Dutch – Belgium 0813 2067
Edo 0466 1126
English – United States 0409 1033
English – United Kingdom 0809 2057
English – Australia 0c09 3081
English – Belize 2809 10249
English – Canada 1009 4105
English – Caribbean 2409 9225
English – Hong Kong SAR 3c09 15369
English – India 4009 16393
English – Indonesia 3809 14345
English – Ireland 1809 6153
English – Jamaica 2009 8201
English – Malaysia 4409 17417
English – New Zealand 1409 5129
English – Philippines 3409 13321
English – Singapore 4809 18441
English – South Africa 1c09 7177
English – Trinidad 2c09 11273
English – Zimbabwe 3009 12297
Estonian 0425 1061
Faroese 0438 1080
Farsi 0429 1065
Filipino 0464 1124
Finnish 040b 1035
French – France 040c 1036
French – Belgium 080c 2060
French – Cameroon 2c0c 11276
French – Canada 0c0c 3084
French – Democratic Rep. of Congo 240c 9228
French – Cote d’Ivoire 300c 12300
French – Haiti 3c0c 15372
French – Luxembourg 140c 5132
French – Mali 340c 13324
French – Monaco 180c 6156
French – Morocco 380c 14348
French – North Africa e40c 58380
French – Reunion 200c 8204
French – Senegal 280c 10252
French – Switzerland 100c 4108
French – West Indies 1c0c 7180
Frisian – Netherlands 0462 1122
Fulfulde – Nigeria 0467 1127
FYRO Macedonian 042f 1071
Galician 0456 1110
Georgian 0437 1079
German – Germany 0407 1031
German – Austria 0c07 3079
German – Liechtenstein 1407 5127
German – Luxembourg 1007 4103
German – Switzerland 0807 2055
Greek 0408 1032
Greenlandic 046f 1135
Guarani – Paraguay 0474 1140
Gujarati 0447 1095
Hausa – Nigeria 0468 1128
Hawaiian – United States 0475 1141
Hebrew 040d 1037
Hindi 0439 1081
Hungarian 040e 1038
Ibibio – Nigeria 0469 1129
Icelandic 040f 1039
Igbo – Nigeria 0470 1136
Indonesian 0421 1057
Inuktitut 045d 1117
Irish 083c 2108
Italian – Italy 0410 1040
Italian – Switzerland 0810 2064
Japanese 0411 1041
K’iche 0486 1158
Kannada 044b 1099
Kanuri – Nigeria 0471 1137
Kashmiri 0860 2144
Kashmiri (Arabic) 0460 1120
Kazakh 043f 1087
Khmer 0453 1107
Kinyarwanda 0487 1159
Konkani 0457 1111
Korean 0412 1042
Kyrgyz (Cyrillic) 0440 1088
Lao 0454 1108
Latin 0476 1142
Latvian 0426 1062
Lithuanian 0427 1063
Luxembourgish 046e 1134
Malay – Malaysia 043e 1086
Malay – Brunei Darussalam 083e 2110
Malayalam 044c 1100
Maltese 043a 1082
Manipuri 0458 1112
Maori – New Zealand 0481 1153
Mapudungun 0471 1146
Marathi 044e 1102
Mohawk 047c 1148
Mongolian (Cyrillic) 0450 1104
Mongolian (Mongolian) 0850 2128
Nepali 0461 1121
Nepali – India 0861 2145
Norwegian (Bokmål) 0414 1044
Norwegian (Nynorsk) 0814 2068
Occitan 0482 1154
Oriya 0448 1096
Oromo 0472 1138
Papiamentu 0479 1145
Pashto 0463 1123
Polish 0415 1045
Portuguese – Brazil 0416 1046
Portuguese – Portugal 0816 2070
Punjabi 0446 1094
Punjabi (Pakistan) 0846 2118
Quecha – Bolivia 046B 1131
Quecha – Ecuador 086B 2155
Quecha – Peru 0C6B 3179
Rhaeto-Romanic 0417 1047
Romanian 0418 1048
Romanian – Moldava 0818 2072
Russian 0419 1049
Russian – Moldava 0819 2073
Sami (Lappish) 043b 1083
Sanskrit 044f 1103
Scottish Gaelic 043c 1084
Sepedi 046c 1132
Serbian (Cyrillic) 0c1a 3098
Serbian (Latin) 081a 2074
Sindhi – India 0459 1113
Sindhi – Pakistan 0859 2137
Sinhalese – Sri Lanka 045b 1115
Slovak 041b 1051
Slovenian 0424 1060
Somali 0477 1143
Sorbian 042e 1070
Spanish – Spain (Modern Sort) 0c0a 3082
Spanish – Spain (Traditional Sort) 040a 1034
Spanish – Argentina 2c0a 11274
Spanish – Bolivia 400a 16394
Spanish – Chile 340a 13322
Spanish – Colombia 240a 9226
Spanish – Costa Rica 140a 5130
Spanish – Dominican Republic 1c0a 7178
Spanish – Ecuador 300a 12298
Spanish – El Salvador 440a 17418
Spanish – Guatemala 100a 4106
Spanish – Honduras 480a 18442
Spanish – Latin America 580a 22538
Spanish – Mexico 080a 2058
Spanish – Nicaragua 4c0a 19466
Spanish – Panama 180a 6154
Spanish – Paraguay 3c0a 15370
Spanish – Peru 280a 10250
Spanish – Puerto Rico 500a 20490
Spanish – United States 540a 21514
Spanish – Uruguay 380a 14346
Spanish – Venezuela 200a 8202
Sutu 0430 1072
Swahili 0441 1089
Swedish 041d 1053
Swedish – Finland 081d 2077
Syriac 045a 1114
Tajik 0428 1064
Tamazight (Arabic) 045f 1119
Tamazight (Latin) 085f 2143
Tamil 0449 1097
Tatar 0444 1092
Telugu 044a 1098
Thai 041e 1054
Tibetan – Bhutan 0851 2129
Tibetan – People’s Republic of China 0451 1105
Tigrigna – Eritrea 0873 2163
Tigrigna – Ethiopia 0473 1139
Tsonga 0431 1073
Tswana 0432 1074
Turkish 041f 1055
Turkmen 0442 1090
Uighur – China 0480 1152
Ukrainian 0422 1058
Urdu 0420 1056
Urdu – India 0820 2080
Uzbek (Cyrillic) 0843 2115
Uzbek (Latin) 0443 1091
Venda 0433 1075
Vietnamese 042a 1066
Welsh 0452 1106
Wolof 0488 1160
Xhosa 0434 1076
Yakut 0485 1157
Yi 0478 1144
Yiddish 043d 1085
Yoruba 046a 1130
Zulu 0435 1077
HID (Human Interface Device) 04ff 1279

Example usage

The StrConv function can be used in VBA code. Let’s look at some VBA StrConv function examples:

StrConv "Hello World!", vbUpperCase
'Result: "HELLO WORLD!"

StrConv "Hello World!", vbLowerCase
'Result: "hello world!"

StrConv "hello world!", vbProperCase
'Result: "Hello World!"

Понравилась статья? Поделить с друзьями:
  • Vba excel время работы макроса
  • Vba excel время не ждет
  • Vba excel временная задержка
  • Vba excel впр в массиве
  • Vba excel возведение степень