Convert Excel Files To CSV Files Using Excel VBA (Excel Automation)

Поділитися
Вставка
  • Опубліковано 7 лис 2024
  • In this Excel Automation tutorial, we will learn how to convert Excel files to CSV files using VBA.
    ► Buy Me a Coffee? Your support is much appreciated!
    -------------------------------------------------------------------------------------------
    ☕ Paypal: www.paypal.me/...
    ☕ Venmo: @Jie-Jenn
    💸 Join Robinhood with my link and we'll both get a free stock: bit.ly/3iWr7LC
    ► Support my channel so I can continue making free contents
    ---------------------------------------------------------------------------------------------------------------
    🌳 Becoming a Patreon supporter: / jiejenn
    🛒 By shopping on Amazon → amzn.to/2JkGeMD
    📘 Facebook Page → / madeinpython
    📘 More tutorial videos on my website → LearnDataAnaly...
    ✉️ Business Inquiring: UA-cam@LearnDataAnalysis.org
    #excel #vba #excelvba

КОМЕНТАРІ • 19

  • @rohitpatil5083
    @rohitpatil5083 Рік тому +2

    You made it simple & easy to understand with an example…loved it. Could you please give a code to convert .tdms files to .csv files and save with same name ?

  • @HappyLife-um2tn
    @HappyLife-um2tn Рік тому

    Will this work if source is from sharepoint? Thanks for sharing

  • @AdAstraLeo
    @AdAstraLeo Рік тому

    I’m using mac and I always get the in the line with SaveAs. Seems saving as csv cannot be done in mac, I tried other formats from .xls to .xlsx, your code is working. Hope you can help.

  • @adamamer2795
    @adamamer2795 Рік тому

    Works Perfectly!!!! Thank you so much!

  • @vasudevg6110
    @vasudevg6110 10 місяців тому

    Please make a video on how to convert CSV to excel file. When I save CSV file some text columns numbers are changed as 0000. How can we convert it with vba

  • @jonelatendido9836
    @jonelatendido9836 Рік тому

    Could you provide the code? It should be helpful that way,. Thanks you so much for this tutorial❤️

  • @hansakaerandaranasinghe6455
    @hansakaerandaranasinghe6455 6 місяців тому

    love this!!

  • @sandipdas1
    @sandipdas1 6 місяців тому

    wb_target.saveas data_file_folder & replace (file name, ".xlsx", ".csv"),6
    exception has been thrown by the target of an invocation
    Please help

  • @weiyang145
    @weiyang145 Рік тому

    The output files are corrupted. I can't open it

  • @MrVenus18
    @MrVenus18 2 роки тому

    Can you please paste code here

  • @AnubhavKashyapYt
    @AnubhavKashyapYt Рік тому

    Give code sir

    • @jiejenn
      @jiejenn  Рік тому

      Ok

    • @AnubhavKashyapYt
      @AnubhavKashyapYt Рік тому +1

      @@jiejenn I'm facing runtime error 9
      Subscript out of range

    • @larmondoflairallen4705
      @larmondoflairallen4705 Рік тому +2

      @@AnubhavKashyapYt Same here. I've triple-checked the code and it still doesn't like that step

    • @weiyang145
      @weiyang145 Рік тому

      ​@@larmondoflairallen4705 U may try replace
      As is : wb_source.Worksheets("Data").Copy
      To be : wb_source.Worksheets("Sheet1").Copy