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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 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: TH-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 ?

  • @adamamer2795
    @adamamer2795 10 หลายเดือนก่อน

    Works Perfectly!!!! Thank you so much!

  • @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.

  • @sandipdas1
    @sandipdas1 4 หลายเดือนก่อน

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

  • @hansakaerandaranasinghe6455
    @hansakaerandaranasinghe6455 4 หลายเดือนก่อน

    love this!!

    • @jiejenn
      @jiejenn  4 หลายเดือนก่อน

      👍

  • @vasudevg6110
    @vasudevg6110 8 หลายเดือนก่อน

    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 10 หลายเดือนก่อน

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

  • @HappyLife-um2tn
    @HappyLife-um2tn 11 หลายเดือนก่อน

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

    • @jiejenn
      @jiejenn  11 หลายเดือนก่อน

      You will have to incorporate SharePoints API.

    • @HappyLife-um2tn
      @HappyLife-um2tn 11 หลายเดือนก่อน

      Thank you@@jiejenn

  • @weiyang145
    @weiyang145 11 หลายเดือนก่อน

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

  • @MrVenus18
    @MrVenus18 ปีที่แล้ว

    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 11 หลายเดือนก่อน

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