+ Reply to Thread
Results 1 to 5 of 5

Open .csv files and show Spanish characters UTF-8 using VBA

  1. #1
    Registered User
    Join Date
    05-23-2022
    Location
    Barcelona, Spain
    MS-Off Ver
    2016
    Posts
    2

    Question Open .csv files and show Spanish characters UTF-8 using VBA

    Hello,

    I have a .csv file with data that contains spanish characters (á, é, ñ...). If opened in Notepad++ I can see the characters correctly, but when I open it in Excel I get the typical strange characters (Fern~ºndez, instead of Fernández).

    I need to open several of this files using VBA and do some changes, so I would like to know if there is any code to do this:
    - Open a .csv in UTF-8 so I can get the proper spanish characters
    - Save it as regular .xlsx file.

    Thanks a lot.

    Txus

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,360

    Re: Open .csv files and show Spanish characters UTF-8 using VBA

    Are you able to upload a dummy csv file with the characters mentioned?

    Yellow bar at the top explains uploading a file.
    If things don't change they stay the same

  3. #3
    Registered User
    Join Date
    05-23-2022
    Location
    Barcelona, Spain
    MS-Off Ver
    2016
    Posts
    2

    Re: Open .csv files and show Spanish characters UTF-8 using VBA

    thanks for the reply, however it doesn't work, even following the instructions in the yellow bar. Attachement button displays an empty menu.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Open .csv files and show Spanish characters UTF-8 using VBA

    Quote Originally Posted by txusmah View Post
    - Open a .csv in UTF-8 so I can get the proper spanish characters
    - Save it as regular .xlsx file.
    try
    Please Login or Register  to view this content.
    Last edited by jindon; 05-23-2022 at 11:12 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Open .csv files and show Spanish characters UTF-8 using VBA

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I will post a link for you this time: https://www.mrexcel.com/board/thread...g-vba.1205822/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. show how many files and extensions and last created date and show message
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-12-2021, 02:58 PM
  2. [SOLVED] vba to open excel workbook if alrady open by other user show userform and exit sub
    By bluepomme in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2018, 07:14 PM
  3. macro to open files and copy specific sheet into new workbook (have open files part)
    By dangerdavedsp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 02:23 PM
  4. Excel 2007 - inputs spanish characters
    By kenq33 in forum Excel General
    Replies: 1
    Last Post: 01-12-2015, 06:36 AM
  5. [SOLVED] Open folder with "Application.dialogs(xldialogopen).show" not showing all files ?
    By ChrisBester in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2013, 06:43 AM
  6. [SOLVED] Open all files in a SharePoint folder (Problem: Files open out of order)
    By holmstarrunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 10:13 AM
  7. open all files in a folder with fixed number of characters in filename
    By Telemick in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-18-2012, 03:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1