<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:tt="http://teletype.in/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Excel Hacker</title><generator>teletype.in</generator><description><![CDATA[https://vm.tiktok.com/ZSEyRaNN/]]></description><link>https://teletype.in/@hack_my_excel?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel</link><atom:link rel="self" type="application/rss+xml" href="https://teletype.in/rss/hack_my_excel?offset=0"></atom:link><atom:link rel="next" type="application/rss+xml" href="https://teletype.in/rss/hack_my_excel?offset=10"></atom:link><atom:link rel="search" type="application/opensearchdescription+xml" title="Teletype" href="https://teletype.in/opensearch.xml"></atom:link><pubDate>Thu, 16 Apr 2026 08:48:30 GMT</pubDate><lastBuildDate>Thu, 16 Apr 2026 08:48:30 GMT</lastBuildDate><item><guid isPermaLink="true">https://teletype.in/@hack_my_excel/88mtVtgWP</guid><link>https://teletype.in/@hack_my_excel/88mtVtgWP?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel</link><comments>https://teletype.in/@hack_my_excel/88mtVtgWP?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel#comments</comments><dc:creator>hack_my_excel</dc:creator><title>Макрос. Оглавление листов в Excel</title><pubDate>Wed, 17 Feb 2021 17:34:50 GMT</pubDate><description><![CDATA[Sub Оглавление()
'This macro adds the TOC as first sheet in the workbook
'with name as &quot;Оглавление&quot;
    Dim sheetNum As Long]]></description><content:encoded><![CDATA[
  <p><code>Sub Оглавление()<br />&#x27;This macro adds the TOC as first sheet in the workbook<br />&#x27;with name as &quot;Оглавление&quot;<br />    Dim sheetNum As Long</code></p>
  <p><code>&#x27;Removing previous TOC if any<br />    On Error Resume Next<br />    Sheets(&quot;Оглавление&quot;).Delete<br />    On Error GoTo 0</code></p>
  <p><code>&#x27;Adding a new TOC<br />    ThisWorkbook.Sheets.Add _<br />    Before:=ThisWorkbook.Worksheets(1)<br />    ActiveSheet.Name = &quot;Оглавление&quot;</code></p>
  <p><code>    For sheetNum = 1 To Sheets.Count<br />        ActiveSheet.Cells(sheetNum, 1).Select<br />        ActiveSheet.Hyperlinks.Add _<br />        Anchor:=ActiveSheet.Cells(sheetNum, 1), _<br />        Address:=&quot;&quot;, _<br />        SubAddress:=&quot;&#x27;&quot; &amp; Sheets(sheetNum).Name &amp; &quot;&#x27;!A1&quot;, _<br />        TextToDisplay:=Sheets(sheetNum).Name<br />    Next sheetNum<br />End Sub</code></p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@hack_my_excel/E8KvTGpj_</guid><link>https://teletype.in/@hack_my_excel/E8KvTGpj_?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel</link><comments>https://teletype.in/@hack_my_excel/E8KvTGpj_?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel#comments</comments><dc:creator>hack_my_excel</dc:creator><title>Генерируем случайные текстовые числовые значения в EXCEL</title><pubDate>Wed, 03 Feb 2021 12:56:37 GMT</pubDate><description><![CDATA[В ячейке А1 введем текстовую строку, из которой в случайном порядке будут выбираться символы: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]]></description><content:encoded><![CDATA[
  <p>В ячейке <strong><em>А1 </em></strong>введем текстовую строку, из которой в случайном порядке будут выбираться символы: <em>ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789</em></p>
  <p>Запишем в ячейке, где нужно сгенерировать случайные значения, вставляем длинную формулу состоящую из 4 одинаковых частей: <code>=ПСТР($A$1;СЛУЧМЕЖДУ(1;ДЛСТР($A$1));1) &amp; ПСТР($A$1;СЛУЧМЕЖДУ(1;ДЛСТР($A$1));1) &amp; ПСТР($A$1;СЛУЧМЕЖДУ(1;ДЛСТР($A$1));1) &amp; ПСТР($A$1;СЛУЧМЕЖДУ(1;ДЛСТР($A$1));1)</code></p>
  <p>Для того, чтобы сгенерировать больше случайных значений, нужно добавить еще соответствующее количество раз эту часть формулы:</p>
  <p><code>&amp; ПСТР($A$1;СЛУЧМЕЖДУ(1;ДЛСТР($A$1));1)</code></p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@hack_my_excel/oFTip4Hq0</guid><link>https://teletype.in/@hack_my_excel/oFTip4Hq0?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel</link><comments>https://teletype.in/@hack_my_excel/oFTip4Hq0?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel#comments</comments><dc:creator>hack_my_excel</dc:creator><title>МАКРОС ДЛЯ ПЕРЕВОД СУММЫ ИЛИ ЧИСЛА ПРОПИСЬЮ В EXCEL</title><pubDate>Mon, 01 Feb 2021 01:08:39 GMT</pubDate><description><![CDATA[https://vm.tiktok.com/ZSEHeHg6/]]></description><content:encoded><![CDATA[
  <p><a href="https://vm.tiktok.com/ZSEHeHg6/" target="_blank">https://vm.tiktok.com/ZSEHeHg6/</a></p>
  <p>Откройте редактор Visual Basic с помощью сочетания клавиш ALT+F11, вставьте новый модуль (меню <strong>Insert - Module</strong>) и скопируйте туда код <strong><u>ЭТОГО МАКРОС. ЕГО КОПИРУЕМ И АККУРАТНО ВСТАВЛЯЕМ В ЯЧЕЙКУ КАК НА ВИДЕО:</u></strong></p>
  <p>После этот макрос можно запустить, написав формулу в любой ячейке </p>
  <p>=ЧислоПрописьюВалюта(ячейка;тип_валюты) </p>
  <p>Например, =ЧислоПрописьюВалюта(А2;1) </p>
  <p>типы валюты бывают такие <br />1-рубли;<br />2-доллары;<br />0-евро</p>
  <p><strong><u>САМ МАКРОС </u></strong></p>
  <p><code>Function ЧислоПрописьюВалюта(Число As Double, Optional Валюта As Integer = 1, Optional Копейки As Integer = 1)</code></p>
  <p><code>Dim Edinicy(0 To 19) As String: Dim EdinicyPoslednie(0 To 19) As String</code></p>
  <p><code>Dim Desyatki(0 To 9) As String: Dim Sotni(0 To 9) As String: Dim mlrd(0 To 9) As String</code></p>
  <p><code>Dim mln(0 To 9) As String: Dim tys(0 To 9) As String</code></p>
  <p><code>Dim SumInt, x, shag, vl As Integer: Dim txt, Sclon_Tys As String</code></p>
  <p><code>&#x27;---------------------------------------------</code></p>
  <p><code>Application.Volatile</code></p>
  <p><code>&#x27;---------------------------------------------</code></p>
  <p><code>Edinicy(0) = &quot;&quot;: EdinicyPoslednie(0) = IIf(Валюта = 0, &quot;евро&quot;, IIf(Валюта = 1, &quot;рублей&quot;, &quot;долларов&quot;))</code></p>
  <p><code>Edinicy(1) = &quot;один &quot;: EdinicyPoslednie(1) = IIf(Валюта = 0, &quot;один евро&quot;, IIf(Валюта = 1, &quot;один рубль&quot;, &quot;один доллар&quot;))</code></p>
  <p><code>Edinicy(2) = &quot;два &quot;: EdinicyPoslednie(2) = IIf(Валюта = 0, &quot;два евро&quot;, IIf(Валюта = 1, &quot;два рубля&quot;, &quot;два доллара&quot;))</code></p>
  <p><code>Edinicy(3) = &quot;три &quot;: EdinicyPoslednie(3) = IIf(Валюта = 0, &quot;три евро&quot;, IIf(Валюта = 1, &quot;три рубля&quot;, &quot;три доллара&quot;))</code></p>
  <p><code>Edinicy(4) = &quot;четыре &quot;: EdinicyPoslednie(4) = IIf(Валюта = 0, &quot;четыре евро&quot;, IIf(Валюта = 1, &quot;четыре рубля&quot;, &quot;четыре доллара&quot;))</code></p>
  <p><code>Edinicy(5) = &quot;пять &quot;: EdinicyPoslednie(5) = IIf(Валюта = 0, &quot;пять евро&quot;, IIf(Валюта = 1, &quot;пять рублей&quot;, &quot;пять долларов&quot;))</code></p>
  <p><code>Edinicy(6) = &quot;шесть &quot;: EdinicyPoslednie(6) = IIf(Валюта = 0, &quot;шесть евро&quot;, IIf(Валюта = 1, &quot;шесть рублей&quot;, &quot;шесть долларов&quot;))</code></p>
  <p><code>Edinicy(7) = &quot;семь &quot;: EdinicyPoslednie(7) = IIf(Валюта = 0, &quot;семь евро&quot;, IIf(Валюта = 1, &quot;семь рублей&quot;, &quot;семь долларов&quot;))</code></p>
  <p><code>Edinicy(8) = &quot;восемь &quot;: EdinicyPoslednie(8) = IIf(Валюта = 0, &quot;восемь евро&quot;, IIf(Валюта = 1, &quot;восемь рублей&quot;, &quot;восемь долларов&quot;))</code></p>
  <p><code>Edinicy(9) = &quot;девять &quot;: EdinicyPoslednie(9) = IIf(Валюта = 0, &quot;девять евро&quot;, IIf(Валюта = 1, &quot;девять рублей&quot;, &quot;девять долларов&quot;))</code></p>
  <p><code>Edinicy(11) = &quot;одиннадцать &quot;: EdinicyPoslednie(11) = IIf(Валюта = 0, &quot;одиннадцать евро&quot;, IIf(Валюта = 1, &quot;одиннадцать рублей&quot;, &quot;одиннадцать долларов&quot;))</code></p>
  <p><code>Edinicy(12) = &quot;надцать &quot;: EdinicyPoslednie(12) = IIf(Валюта = 0, &quot;надцать евро&quot;, IIf(Валюта = 1, &quot;надцать рублей&quot;, &quot;надцать долларов&quot;))</code></p>
  <p><code>Edinicy(13) = &quot;тринадцать &quot;: EdinicyPoslednie(13) = IIf(Валюта = 0, &quot;тринадцать евро&quot;, IIf(Валюта = 1, &quot;тринадцать рублей&quot;, &quot;тринадцать долларов&quot;))</code></p>
  <p><code>Edinicy(14) = &quot;четырнадцать &quot;: EdinicyPoslednie(14) = IIf(Валюта = 0, &quot;четырнадцать евро&quot;, IIf(Валюта = 1, &quot;четырнадцать рублей&quot;, &quot;четырнадцать долларов&quot;))</code></p>
  <p><code>Edinicy(15) = &quot;пятнадцать &quot;: EdinicyPoslednie(15) = IIf(Валюта = 0, &quot;пятнадцать евро&quot;, IIf(Валюта = 1, &quot;пятнадцать рублей&quot;, &quot;пятнадцать долларов&quot;))</code></p>
  <p><code>Edinicy(16) = &quot;шестнадцать &quot;: EdinicyPoslednie(16) = IIf(Валюта = 0, &quot;шестнадцать евро&quot;, IIf(Валюта = 1, &quot;шестнадцать рублей&quot;, &quot;шестнадцать долларов&quot;))</code></p>
  <p><code>Edinicy(17) = &quot;семнадцать &quot;: EdinicyPoslednie(17) = IIf(Валюта = 0, &quot;семнадцать евро&quot;, IIf(Валюта = 1, &quot;семнадцать рублей&quot;, &quot;семнадцать долларов&quot;))</code></p>
  <p><code>Edinicy(18) = &quot;восемнадцать &quot;: EdinicyPoslednie(18) = IIf(Валюта = 0, &quot;восемнадцать евро&quot;, IIf(Валюта = 1, &quot;восемнадцать рублей&quot;, &quot;восемнадцать долларов&quot;))</code></p>
  <p><code>Edinicy(19) = &quot;девятнадцать &quot;: EdinicyPoslednie(19) = IIf(Валюта = 0, &quot;девятнадцать евро&quot;, IIf(Валюта = 1, &quot;девятнадцать рублей&quot;, &quot;девятнадцать долларов&quot;))</code></p>
  <p><code>&#x27;&#x27;---------------------------------------------</code></p>
  <p><code>Desyatki(0) = &quot;&quot;: Sotni(0) = &quot;&quot;: tys(0) = &quot;тисячь &quot;: mln(0) = &quot;миллионов &quot;: mlrd(0) = &quot;миллиардов &quot;</code></p>
  <p><code>Desyatki(1) = &quot;десять &quot;: Sotni(1) = &quot;сто &quot;: tys(1) = &quot;тысяча &quot;: mln(1) = &quot;миллион &quot;: mlrd(1) = &quot;миллиарда &quot;</code></p>
  <p><code>Desyatki(2) = &quot;двадцать &quot;: Sotni(2) = &quot;двести &quot;: tys(2) = &quot;тысячи &quot;: mln(2) = &quot;миллиона &quot;: mlrd(2) = &quot;миллиарда &quot;</code></p>
  <p><code>Desyatki(3) = &quot;тридцать &quot;: Sotni(3) = &quot;триста &quot;: tys(3) = &quot;тысячи &quot;: mln(3) = &quot;миллиона &quot;: mlrd(3) = &quot;миллиарда &quot;</code></p>
  <p><code>Desyatki(4) = &quot;сорок &quot;: Sotni(4) = &quot;четыреста &quot;: tys(4) = &quot;тысячи &quot;: mln(4) = &quot;миллиона &quot;: mlrd(4) = &quot;миллиарда &quot;</code></p>
  <p><code>Desyatki(5) = &quot;пятьдесят &quot;: Sotni(5) = &quot;пятьсот &quot;: tys(5) = &quot;тысяч &quot;: mln(5) = &quot;миллионов &quot;: mlrd(5) = &quot;миллиардов &quot;</code></p>
  <p><code>Desyatki(6) = &quot;шестьдесят &quot;: Sotni(6) = &quot;шестьсот &quot;: tys(6) = &quot;тысяч &quot;: mln(6) = &quot;миллионов &quot;: mlrd(6) = &quot;миллиардов &quot;</code></p>
  <p><code>Desyatki(7) = &quot;семьдесят &quot;: Sotni(7) = &quot;семьсот &quot;: tys(7) = &quot;тысяч &quot;: mln(7) = &quot;миллионов &quot;: mlrd(7) = &quot;миллиардов &quot;</code></p>
  <p><code>Desyatki(8) = &quot;восемьдесят &quot;: Sotni(8) = &quot;восемьсот &quot;: tys(8) = &quot;тысяч &quot;: mln(8) = &quot;миллионов &quot;: mlrd(8) = &quot;миллиардов &quot;</code></p>
  <p><code>Desyatki(9) = &quot;девяносто &quot;: Sotni(9) = &quot;девятьсот &quot;: tys(9) = &quot;тысяч &quot;: mln(9) = &quot;миллионов &quot;: mlrd(9) = &quot;миллиардов &quot;</code></p>
  <p><code>&#x27;---------------------------------------------</code></p>
  <p></p>
  <p><code>On Error Resume Next</code></p>
  <p><code>SumInt = Int(Число)</code></p>
  <p><code>For x = Len(SumInt) To 1 Step -1</code></p>
  <p><code>    shag = shag + 1</code></p>
  <p><code>    Select Case x</code></p>
  <p><code>        Case 12 &#x27; - сотни миллиардов</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            txt = txt &amp; Sotni(vl)</code></p>
  <p><code>        Case 11 &#x27; - десятки  миллиардов</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            If vl = &quot;1&quot; And Mid(SumInt, shag + 1, 1) &lt;&gt; 0 Then GoTo 10 Else txt = txt &amp; Desyatki(vl)  &#x27; - если конец триады от 11 до 19 то перескакиваем на единицы, иначе - формируем десятки</code></p>
  <p><code>        Case 10 &#x27; - единицы  миллиардов</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            If shag &gt; 1 Then</code></p>
  <p><code>                If Mid(SumInt, shag - 1, 1) = 1 Then txt = txt &amp; Edinicy(Mid(SumInt, shag - 1, 2)) &amp; &quot;миллиарда &quot; Else txt = txt &amp; Edinicy(vl) &amp; mlrd(vl) &#x27;числа в диапозоне от 11 до 19 склоняются на &quot;мільярдов&quot; независимо от последнего числа триады</code></p>
  <p><code>            Else</code></p>
  <p><code>                txt = txt &amp; Edinicy(vl) &amp; mlrd(vl)</code></p>
  <p><code>            End If</code></p>
  <p></p>
  <p><code>        &#x27;-КОНЕЦ БЛОКА_______________________</code></p>
  <p></p>
  <p><code>        Case 9 &#x27; - сотни миллионов</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            txt = txt &amp; Sotni(vl)</code></p>
  <p><code>        Case 8 &#x27; - десятки  миллионов</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            If vl = &quot;1&quot; And Mid(SumInt, shag + 1, 1) &lt;&gt; 0 Then GoTo 10 Else txt = txt &amp; Desyatki(vl)  &#x27; - если конец триады от 11 до 19 то перескакиваем на единицы, иначе - формируем десятки</code></p>
  <p><code>        Case 7 &#x27; - единицы  миллионов</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            If shag &gt; 2 Then</code></p>
  <p><code>                If (Mid(SumInt, shag - 2, 1) = 0 And Mid(SumInt, shag - 1, 1) = 0 And vl = &quot;0&quot;) Then GoTo 10</code></p>
  <p><code>            End If</code></p>
  <p><code>            If shag &gt; 1 Then</code></p>
  <p><code>                If Mid(SumInt, shag - 1, 1) = 1 Then txt = txt &amp; Edinicy(Mid(SumInt, shag - 1, 2)) &amp; &quot;миллиона &quot; Else: txt = txt &amp; Edinicy(vl) &amp; mln(vl)  &#x27;числа в диапозоне от 11 до 19 склоняются на &quot;миллиардов&quot; независимо от последнего числа триады</code></p>
  <p><code>            Else</code></p>
  <p><code>                txt = txt &amp; Edinicy(vl) &amp; mln(vl)</code></p>
  <p><code>            End If</code></p>
  <p><code>        &#x27;-КОНЕЦ БЛОКА_______________________</code></p>
  <p></p>
  <p><code>        Case 6 &#x27; - сотни тысяч</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            txt = txt &amp; Sotni(vl)</code></p>
  <p><code>        Case 5 &#x27; - десятки  тысяч</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            If vl = 1 And Mid(SumInt, shag + 1, 1) &lt;&gt; 0 Then GoTo 10 Else txt = txt &amp; Desyatki(vl)  &#x27; - если конец триады от 11 до 19 то перескакиваем на единицы, иначе - формируем десятки</code></p>
  <p><code>        Case 4 &#x27; - единицы  тысяч</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            If shag &gt; 2 Then</code></p>
  <p><code>                If (Mid(SumInt, shag - 2, 1) = 0 And Mid(SumInt, shag - 1, 1) = 0 And vl = &quot;0&quot;) Then GoTo 10</code></p>
  <p><code>            End If</code></p>
  <p><code>            Sclon_Tys = Edinicy(vl) &amp; tys(vl) &#x27; - вводим переменную Sclon_Tys из-за иного склонения  тысяч в русском языке</code></p>
  <p><code>            If vl = 1 Then Sclon_Tys = &quot;одна &quot; &amp; tys(vl) &#x27; - для тысяч склонение &quot;один&quot; и &quot;два&quot; неприменимо ( поэтому вводим переменную  Sclon_Tys )</code></p>
  <p><code>            If vl = 2 Then Sclon_Tys = &quot;две &quot; &amp; tys(vl) &#x27; - для тысяч склонение &quot;один&quot; и &quot;два&quot; неприменимо ( поэтому вводим переменную  Sclon_Tys )</code></p>
  <p><code>            If shag &gt; 1 Then</code></p>
  <p><code>                If Mid(SumInt, shag - 1, 1) = 1 Then Sclon_Tys = Edinicy(Mid(SumInt, shag - 1, 2)) &amp; &quot;тисяч &quot;</code></p>
  <p><code>            End If</code></p>
  <p><code>            txt = txt &amp; Sclon_Tys</code></p>
  <p></p>
  <p><code>       &#x27;-КОНЕЦ БЛОКА_______________________</code></p>
  <p><code>        Case 3 &#x27; - сотни</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            txt = txt &amp; Sotni(vl)</code></p>
  <p><code>        Case 2 &#x27; - десятки</code></p>
  <p><code>            vl = Mid(SumInt, shag, 1)</code></p>
  <p><code>            If vl = &quot;1&quot; And Mid(SumInt, shag + 1, 1) &lt;&gt; 0 Then GoTo 10 Else txt = txt &amp; Desyatki(vl)  &#x27; - если конец триады от 11 до 19 то перескакиваем на единицы, иначе - формируем десятки</code></p>
  <p><code>        Case 1 &#x27; - единицы</code></p>
  <p><code>            If Mid(SumInt, shag - 1, 1) &lt;&gt; 1 Or Mid(SumInt, shag - 1, 2) = &quot;10&quot; Then vl = Mid(SumInt, shag, 1) Else vl = Mid(SumInt, shag - 1, 2)</code></p>
  <p><code>                txt = txt &amp; EdinicyPoslednie(vl)</code></p>
  <p></p>
  <p><code>        &#x27;-КОНЕЦ БЛОКА_______________________</code></p>
  <p></p>
  <p></p>
  <p><code>    End Select</code></p>
  <p><code>10:    Next x</code></p>
  <p><code>a = Число</code></p>
  <p><code>b = Int(a)</code></p>
  <p><code>c = (Round(a - b, 2)) * 100</code></p>
  <p><code>If c &lt; 10 And c &gt;= 1 Then c = &quot;0&quot; + CStr(c)</code></p>
  <p><code>If c = 0 Then c = CStr(c) + &quot;0&quot;</code></p>
  <p><code>d = &quot;&quot;</code></p>
  <p><code>If Валюта = 1 Then d = &quot;коп.&quot; Else d = &quot;цен.&quot;</code></p>
  <p><code>If Валюта &gt; 2 Or Валюта &lt; 0 Then MsgBox &quot;Укажите параметр 0-2&quot;</code></p>
  <p><code>If Валюта &gt; 2 Or Валюта &lt; 0 Then GoTo 11</code></p>
  <p><code>If Копейки = 0 Then</code></p>
  <p><code>d = &quot;&quot;</code></p>
  <p><code>c = &quot;&quot;</code></p>
  <p><code>End If</code></p>
  <p><code>If Копейки = 2 Then d = &quot;&quot;</code></p>
  <p><code>If Копейки &gt; 2 Or Копейи &lt; 0 Then MsgBox &quot;Укажите параметр 0, 1 или 2&quot;</code></p>
  <p><code>If Копейки &gt; 2 Or Копейки &lt; 0 Then GoTo 11</code></p>
  <p><code>ЧислоПрописьюВалюта = UCase(Left(txt, 1)) &amp; LCase(Mid(txt, 2)) + &quot; &quot; + CStr(c) + d</code></p>
  <p><code>11:</code></p>
  <p><code>End Function</code></p>
  <p></p>
  <p><code>Sub DescribeFunction()</code></p>
  <p><code>   Dim FuncName As String</code></p>
  <p><code>   Dim FuncDesc As String</code></p>
  <p><code>   Dim Category As String</code></p>
  <p><code>   Dim ArgDesc(1 To 3) As String</code></p>
  <p></p>
  <p><code>   FuncName = &quot;ЧислоПрописьюВалюта&quot;</code></p>
  <p><code>   FuncDesc = &quot;Функция преобразовывает число суммы текстовыми словами&quot;</code></p>
  <p><code>   Category = 1 &#x27;Text category</code></p>
  <p><code>   ArgDesc(1) = &quot;Исходная сумма&quot;</code></p>
  <p><code>   ArgDesc(2) = &quot;(необязательный) Тип отображаемой валюты 0-Евро, 1-Рубли, 2-Доллары.&quot;</code></p>
  <p><code>   ArgDesc(3) = &quot;(необязательный) Нужны ли копейки: 0-нет, 1-отображать копейи стандартно, 2-отображать только дробную часть (без слов).&quot;</code></p>
  <p></p>
  <p><code>   Application.MacroOptions _</code></p>
  <p><code>      Macro:=FuncName, _</code></p>
  <p><code>      Description:=FuncDesc, _</code></p>
  <p><code>      Category:=Category, _</code></p>
  <p><code>      ArgumentDescriptions:=ArgDesc</code></p>
  <p><code>End Sub</code></p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@hack_my_excel/0-v8GmUJ-</guid><link>https://teletype.in/@hack_my_excel/0-v8GmUJ-?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel</link><comments>https://teletype.in/@hack_my_excel/0-v8GmUJ-?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=hack_my_excel#comments</comments><dc:creator>hack_my_excel</dc:creator><title>Макрос для сортировки листов в Excel</title><pubDate>Sun, 31 Jan 2021 20:41:50 GMT</pubDate><description><![CDATA[https://vm.tiktok.com/ZSEu4qhL/]]></description><content:encoded><![CDATA[
  <p><a href="https://vm.tiktok.com/ZSEu4qhL/" target="_blank">https://vm.tiktok.com/ZSEu4qhL/</a></p>
  <p>Откройте редактор Visual Basic с помощью сочетания клавиш ALT+F11, вставьте новый модуль (меню <strong>Insert - Module</strong>) и скопируйте туда код этого макроса:</p>
  <p><code>Sub</code> <code>SortSheets()</code></p>
  <p><code> Dim</code> <code>I As</code> <code>Integer, J As</code> <code>Integer</code></p>
  <p><code> For</code> <code>I = 1 To</code> <code>Sheets.Count - 1</code></p>
  <p><code> For</code> <code>J = I + 1 To</code> <code>Sheets.Count</code></p>
  <p><code> If</code> <code>UCase(Sheets(I).Name) &gt; UCase(Sheets(J).Name) Then</code></p>
  <p><code> Sheets(J).Move Before:=Sheets(I)</code></p>
  <p><code> End</code> <code>If</code></p>
  <p><code> Next</code> <code>J</code></p>
  <p><code> Next</code> <code>I</code></p>
  <p><code>End</code> <code>Sub</code></p>
  <p>Теперь этот макрос можно запустить, нажав сочетание клавиш ALT+F8 и выбрав команду <strong>Выполнить (Run)</strong> он быстро отсортирует все листы в текущей книге по возрастанию.</p>

]]></content:encoded></item></channel></rss>