Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What you need is a handy reference to <a href="http://www.asciitable.com/" rel="nofollow noreferrer">THIS</a> ASCII Table</p> <p><img src="https://i.stack.imgur.com/kOa2r.gif" alt="enter image description here"></p> <p>Also </p> <ol> <li>You do not need so many variables.</li> <li>When you declare variables as <code>Dim umlaut1, umlaut2, umlaut3 As String</code>, then only the last variable is declared as string in VBA. The first two are declared as <code>Variants</code></li> </ol> <p>Now back to the ASCII table.</p> <p>If you notice the special chars start from 128 and go up till 255 so simply use a loop to replace the unwanted characters.</p> <p><strong>NOTE</strong>: There is a <strong>one time</strong> slogging that you have to do. This will also ensure that you will not have to add more characters in the future. In the code below, simply add the text to be replaced in the same order as shown in the image above.</p> <p><strong>Code</strong>: (UNTESTED)</p> <pre><code>Function umlaut(text As String) Dim umlaut1 As String, rplString As String Dim i As Long, j as Long Dim MyArray '~~&gt; One time slogging rplString = ",ue,e,,a,,,,,,,,......." '&lt;~~ and so on. '~~&gt; The first one before the comma is empty since we do '~~&gt; not have any replacement for character represented by 128. '~~&gt; The next one is for 129 and then 130 and so on so forth. '~~&gt; The characters for which you do not have the replacement, '~~&gt; leave them empty MyArray = Split(rplString, ",") umlaut1 = text: j = 0 For i = 128 To 255 umlaut1 = Replace(umlaut1, Chr(i), MyArray(j)) j = j + 1 Next umlaut = umlaut1 End Function </code></pre> <p><strong>TIP</strong>: If you feel that you could have your solution by only considering up till say, ASCII 166, then simply amend the code accordingly :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload