Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ' Excel ユーザー定義関数 - LENB (UTF-8版)
- ' .NET Framework が必要
- Function LENBW8(str As String)
- Dim UTF8 As Object
- Dim byteCount As Integer
- Set UTF8 = CreateObject("System.Text.UTF8Encoding")
- byteCount = UTF8.GetByteCount_2(str)
- Set UTF8 = Nothing
- LENBW8 = byteCount
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement