Option Explicit
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Private Sub Command1_Click()
Dim tmpstr As String
tmpstr = "TestCopyString"
Dim i As Long
Dim a() As Byte
i = LenB(StrConv(tmpstr, vbFromUnicode))
ReDim a(i - 1)
CopyMemory a(0), ByVal tmpstr, i
For i = 0 To UBound(a)
Debug.Print a(i)
Next
End Sub