How can I use Excel VBA to output the exact same characters I get when type ALT+(number)?
<p>I wrote a quick operation to generate a table to use as reference when using the <kbd>ALT</kbd> codes.  The output that I get does not match what is actually displayed when typing in the cell. For instance the output shows that <kbd>ALT</kbd>+<kbd>3</kbd> should be this <code>┘</code>, but if I actually type <kbd>ALT</kbd>+<kbd>3</kbd>, it shows this <code>♦</code>.</p>

<p>I am aware that I can use <code>CHRw()</code> to achieve any character, but I guess what I am looking for here is if there is a direct code that is the equivalent of holding <kbd>ALT</kbd> and pressing a number combination. </p>

<p>Here is the code that I used to generate the table:</p>

<pre><code>Sub CHARACTER_TABLE()

    'DEFINE VARIABLES
    Dim CROW As Integer
    Dim CCOL As Integer
    Dim A As Integer

    CROW = 2
    CCOL = 1
    A = 1

    Do
        Cells(CROW, CCOL) = A
        Cells(CROW, (CCOL + 1)) = Chr(A)
        CROW = CROW + 1
        A = A + 1
        If CROW = 42 Then
            CROW = 2
            CCOL = CCOL + 3
        End If
        If A = 256 Then
            Exit Do
        End If
    Loop

End Sub
</code></pre>