{"id":15922,"date":"2023-06-15T14:42:57","date_gmt":"2023-06-15T14:42:57","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=15922"},"modified":"2024-03-30T12:04:53","modified_gmt":"2024-03-30T12:04:53","slug":"save-a-text-file-with-utf-8-encoding-in-vba","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/vba\/save-a-text-file-with-utf-8-encoding-in-vba\/","title":{"rendered":"Save a Text File with UTF-8 Encoding in VBA"},"content":{"rendered":"\n
There are a lot of saving options in Excel, and we can manipulate the saving options as well as any other. When it comes to this, different saving options are available for different file types.<\/p>\n\n\n\n
For the options that are not available directly to us, we can always use VBA to achieve what we want. Such is the case with saving text files with the UTF-8 encoding system<\/strong>. In the example below, we will show how to do this. <\/p>\n\n\n\n UTF-8<\/strong>, in its essence, is an encoding system. It gives us the option to represent characters in the form of ASCII text<\/strong>, but it also allows international characters, such as Arabic or Chinese.<\/p>\n\n\n\n To use VBA in order to save a text file with UTF-8 encoding<\/strong>, we first need to access the VBA, and we will do that by pressing ALT + F11 on our keyboard<\/strong>. When we do that, there will be a separate window shown, and on this one, we will go to Insert >> Module<\/strong>:<\/p>\n\n\n\nSave a Text File with UTF-8 Encoding in VBA<\/h2>\n\n\n\n