How to Import Text (.txt) Files Into Excel - Excel VBA Tutorial - Awesome!!

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ต.ค. 2024

ความคิดเห็น • 76

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว +1

    That's a great point, James! In this case, we didn't want to create a connection or query to a db or even in this case to a txt file that may try to update. We simply wanted access to the data and then to sever the connection to that data immediately once we gleamed the info. You're right, there are sooo many ways to skin these Excel cats! Thanks for your comments, keep them coming sir! Dan :)

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว +7

    Merry Christmas everyone. I hope God blesses you richly this upcoming year. Remember, you ARE a success!! Believe it, be it! Blessings my friends!! Dan

  • @bpatmurray
    @bpatmurray 9 ปีที่แล้ว +6

    Thanks Dan, great video. I have a question, is there a way to create a macro to automatically collate data from a numerous number of other excel documents, without going through and showing it what to do for each one? I want to automate the automation. Any suggestions? Thank you.

  • @sujatha.arunachalam
    @sujatha.arunachalam 11 ปีที่แล้ว

    It was very informative video.I am a beginner and want to learn VBA-Excel , so please provide other tutorial video. Thanks

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  11 ปีที่แล้ว

      No problem, Sujata, I have about 200 videos currently. i recommend starting here at the basics series. Excel VBA Basics #1 - Getting started with Range object, running and debugging Thanks for the comment and the "Like"!

  • @johnbismarksesay577
    @johnbismarksesay577 6 ปีที่แล้ว

    Very helpful, the videos contributed to my capacity as a professional. A big thank to the providers

  • @realesticetea6241
    @realesticetea6241 3 ปีที่แล้ว

    Great video, thanks

  • @ksrinivas1729
    @ksrinivas1729 8 ปีที่แล้ว

    Sir your contents worth millions of Rupees(for us)

  • @kiranpavuluri5416
    @kiranpavuluri5416 10 ปีที่แล้ว

    Great job Dan, Thanks for videos

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      Thanks Kiran! Appreciate it! Dan

  • @Sobolev514
    @Sobolev514 11 ปีที่แล้ว

    As usual very helpful video. Thanks a lot Dan!

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว

    I'll have to research this myself. After I have wrapped my head around this, I'll make a vid for ya! Thanks for your comments as always jen! Dan

  • @tj9382
    @tj9382 3 ปีที่แล้ว

    Hi is it possible to loop through a word pad file extracting specific criteria based information and adding it to an excel spreadsheet? Thanks 🙏

  • @scdeanorki5
    @scdeanorki5 9 ปีที่แล้ว

    Thanks. That is awesome! How do you import text into an open workseet? I tried the ActiveWorkSheet.QueryTables.Add but where my problem lies is that the File path I want to add is a variable which is concatenated with the filePath of the workbook and the text file name (i.e: myVarPath + "fileName.txt"). I can't seem to get the ActiveWorkSheet.QueryTables.Add constructor to use my variable. Any ideas?

  • @lhow3100
    @lhow3100 10 ปีที่แล้ว

    As a project I've taken on, I am trying to figure out how to import data from a Word Document form into Excel. Unfortunately, because there is a lot more text in the word document besides the information that I need, it is very difficult to extract what I need to. For example, the form says, "Full Name" and then there is a spot for the individual to put their name. It then says, "Preferred Name" and then there is a spot for the individual to put their preferred name. I only want the data entered by the individual to be imported. How can I do that?
    Your videos have been a great help! Thanks

  • @mrabalone3492
    @mrabalone3492 5 ปีที่แล้ว

    i love you Sir

  • @anupammandal2697
    @anupammandal2697 11 ปีที่แล้ว

    Thanks a lot Dan..u r awesome!

  • @orlandopalone80
    @orlandopalone80 4 ปีที่แล้ว

    Very good

  • @jen110987
    @jen110987 11 ปีที่แล้ว

    Thanks Dan. I use txt file a lot. Can you do a macro using excel in microsoft outlook? Like sending emails.

  • @bombay24
    @bombay24 8 ปีที่แล้ว

    Hi Dan. Great video. Is there a way to set up a checksum or something similar to ensure that all data from each .txt file has been imported?

  • @roopashreevenkatesh2350
    @roopashreevenkatesh2350 7 ปีที่แล้ว

    Thank you so much for this video😊

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  6 ปีที่แล้ว

      Hi Roopashree, you're very welcome! Thanks for the comments!

  • @rakhisaxena4352
    @rakhisaxena4352 5 ปีที่แล้ว

    Hi Dan thanks for this
    I work in garment industry and there are many approvals and discussions so is it possible to embed an email as an attachment in excel automatically?

  • @lamarbess2281
    @lamarbess2281 6 ปีที่แล้ว

    Thanks great JOB!!!!!

  • @PramodYadav027
    @PramodYadav027 9 ปีที่แล้ว

    Good one Dan :). I was looking for this today and happy to see a detailed video on the same :). Thanks for sharing the knowledge!
    Are you still active with this stuff? I see your last videos are around 1 year old. Cheers !

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  9 ปีที่แล้ว

      Thank you! yes, unfortunately I've been slammed with much more responsibility at my new job, in addition to running a couple businesses and software consulting. Also, I've got 25000 students on Udemy.com with my complete paid courses, whose questions keep me busy. lol. if you have any questions, the best way to reach me nowadays is through the contact form on www.excelvbaisfun.com , as it goes to my email. thanks!
      dan

    • @PramodYadav027
      @PramodYadav027 9 ปีที่แล้ว

      ExcelVbaIsFun Wow! 25,000 ! I am sure you have a lot up your sleeves than :). I have noted your website. Will get in touch when I need help :). Thanks again and all the best !

  • @07lacha
    @07lacha 8 ปีที่แล้ว

    hey Dan thanks for sharing! i have a question though, is there anyway to make the macro import the text on a specific sheet in a certain excel file?

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว

    cool! Do you have any tips for us since you already use this system? Dan

  • @Myrslokstok
    @Myrslokstok 11 ปีที่แล้ว

    You are a excel genius.
    How would you crate a hyperlink that opens in a nother webbrowser like Firefox, when Explorer do not work and is not certified to use???
    Thanks Michael!

  • @orlandolcd
    @orlandolcd 8 ปีที่แล้ว

    How would you charge to put commas on a colum? Thank you

  • @spoortirawat8693
    @spoortirawat8693 4 ปีที่แล้ว

    Hi, how can I do the same for multiple text files.

  • @simonjoserodriguezbrito423
    @simonjoserodriguezbrito423 5 ปีที่แล้ว

    I have a question. In listbox the colour blue that select items I want to change for other colour. Can I change it. and If is posible, How I can do it. Help me please.

  • @2615Prasad
    @2615Prasad 2 หลายเดือนก่อน

    My text file has 16500 lines. I want to load only some specific lines to Excel. There is a unique field by which that particular line can be identified. How to do it

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว

    Thanks Anupam! You too!

  • @prakashbh8619
    @prakashbh8619 6 ปีที่แล้ว

    Hi
    I am working in Accounts Receivable team were i need to download 21 different bank statement and copy and pest all bank statement in Excel on daily bases
    Is there any way to import these statements Directly from Bank Website to Excel Help Me out please

  • @firstname4337
    @firstname4337 11 ปีที่แล้ว

    why didn't you use the Data tab / Get External Data ?
    was it just because you want to show the macro ?

  • @jayricks8938
    @jayricks8938 9 ปีที่แล้ว

    OK quick question possibly stupid but how would you take this macro and keep adding on to it. Like I want to combine multiple text files into 1 excel file just like its done in this video

  • @kennyowz
    @kennyowz 8 ปีที่แล้ว

    Is there a way to do this, with PDF files?
    I've found a way to get the data I need from manually saving a PDF file as an Excel file, with the help of some Excel formulas after that.
    But I'd like to have the PDF-Excel conversion run automatically when I click on a button or something.
    OR!
    Is there an easier way to get data from a PDF file (only specific data/text/nums) with VBA?
    THANK YOU =)

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว

    uploading a video on how to open a link in Firefox, Chrome or internet explorer. Hope this helps you, you were my inspiration for this vid. Thanks!

  • @tnyoga
    @tnyoga 10 ปีที่แล้ว +1

    Hello Dan..Thanks a lot for this video...
    I would like to learn more about the VBA programs you have explained in this video. But i could not able to see the text clearly after run around 7 mins. could you please help on this, so that i can go through full video with clear text. please help me understand your information. Thanks in advance for your help!

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      yogesh,
      Make sure you click on the gear symbol (Settings) in the lower right hand of the screen and set the quality to 720p (HD). Then make sure to put in large player mode OR even fullscreen. That should make it crystal clear.
      Yours,
      Dan

    • @tnyoga
      @tnyoga 10 ปีที่แล้ว

      Thank You Dan.

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      ExcelVbaIsFun You're very welcome!

  • @prakashbh8619
    @prakashbh8619 6 ปีที่แล้ว

    I am working in Accounts Receivable team were i need to download 21 different bank statement and copy and pest all bank statement in Excel on daily bases
    Is there any way to import these statements Directly from Bank Website to Excel Help Me out please

  • @chaitanyagaddam8407
    @chaitanyagaddam8407 7 ปีที่แล้ว

    good one Dan:)

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

    How to extract text or specific text only from notepad to Excel using VBA

  • @ALEXSHUNCAI
    @ALEXSHUNCAI 6 ปีที่แล้ว

    this is just one file on the desktop, what if you want to use VBA to open multiple text files? how to loop them

  • @bagusyudistira3802
    @bagusyudistira3802 7 ปีที่แล้ว

    God Bless you man, this video save my ass

  • @krystlepostle4755
    @krystlepostle4755 9 ปีที่แล้ว

    how to take a Script Text File ] and turn it into Tweets..please explain how to do this

  • @allento8139
    @allento8139 7 ปีที่แล้ว

    Thank you

  • @kostasfilippopoulos8737
    @kostasfilippopoulos8737 8 ปีที่แล้ว

    Hello guys,
    I download PPC Auto Report file in txt. document and it I see asterisks *
    Does anyone know how can I see the keywords behind these * ?
    Is it something I have to convert to on my Excel (where I insert the txt.) or there in the txt. file?
    Thanks anyways!

  • @PrakashPraaku
    @PrakashPraaku 7 ปีที่แล้ว

    Hello sir,
    how can we get mail content data into excel file using VBA, the mail content format will be like, Date, Company Name, Total Expenses, Spending Date, Location.
    These are the headers, and below this there will be some 20 rows of data,
    How to get this into Excel and save in a specific folder with the mail subject line name automatically,
    This will be a great help sir,
    Regards,
    Prakash,
    Bangalore, India

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  7 ปีที่แล้ว

      Hi Prakash,
      Not sure what you're looking for. What do you mean by mail content?
      Thanks
      Dan

  • @ashwanisharma8597
    @ashwanisharma8597 4 ปีที่แล้ว

    Sir is main coloum wise Nahi as Raha hai

  • @ValmisFilm
    @ValmisFilm 5 ปีที่แล้ว

    23:21 - it does open C hard disc, but for some reason not let´s say my second hard drive F: . Why is that? It just opens the last place that was opened.

  • @clayman648
    @clayman648 7 ปีที่แล้ว

    Is there a way I can get my Music.txt file with all play count and ITunes info into an .xml or ITunes library.ltd
    And import all the info from Music.txt so it can be in that order with dates etc?

  • @MarcoTorres4given
    @MarcoTorres4given 6 ปีที่แล้ว

    what if I have more than one text file with different names

  • @Myrslokstok
    @Myrslokstok 10 ปีที่แล้ว

    Thank you,
    When I try to follow your eminent tutorial it does not work.
    The macro does not record all the parts, when I run it again, just paste it into all values ​​straight up and down without separation in different columns. Think formats election efterråt has something with it all to do. If I do it right and then select the text will return the worksheet to a normal Ctr + V paste.
    It is strange that it does not record everything that I do.
    Beloow is the macro code, do not worry about the first few rows:
    Sub Makro3()
    '
    ' Makro3 Makro
    '
    '
    Sheets("ImportAgressoKKKONTO").Select
    Cells.Select
    Selection.ClearContents
    Range("A1").Select
    ActiveSheet.PasteSpecial Format:="Unicode-text", Link:=False, _
    DisplayAsIcon:=False
    End Sub
    Thanks again!

  • @jeewankoirala7200
    @jeewankoirala7200 9 ปีที่แล้ว

    how to move the content in html file. like when we open it it appears moving. like that so plz provide me

  • @idmansabir
    @idmansabir 8 ปีที่แล้ว

    docReader to Excel?

  • @AlinGaoChannel
    @AlinGaoChannel 11 ปีที่แล้ว

    Hi Dan, do you have an email address so I can send my question and a sample spreadsheet to you

  • @MyVasant
    @MyVasant 9 ปีที่แล้ว

    My .txt data should convert like this in excel? can anyone help me

    SCID00 -
    PI1

    SCID01 -
    P01

    SCID02 -
    IE5


    KRW,5
    HUF,0

    LMV,3

    KRW,2

  • @Jake-hk2uq
    @Jake-hk2uq 8 ปีที่แล้ว +2

    lol that says JP Morgan

  • @MAHIPOLITO
    @MAHIPOLITO 9 ปีที่แล้ว

    too much talking

  • @sabirmolla1880
    @sabirmolla1880 6 ปีที่แล้ว

    চ্্

  • @ALEXSHUNCAI
    @ALEXSHUNCAI 6 ปีที่แล้ว +1

    actually, you didn't touch the real stuff, just record macro and put up on the youtube, everyone can do this, what you should do is to put up multiple text files at the certain directory, then from there, show the audiences how to open them all at one go, turn off that damn music at the end, it is not super awesome video to me, it is just the simple shit and you thought it was the greatest achievement.

  • @enrikekasijas705
    @enrikekasijas705 2 ปีที่แล้ว +1

    Nice. I really like that last part with application.getopenfilename() . Never seen that before but it's powerful ;)

    • @coursecheap9043
      @coursecheap9043 2 ปีที่แล้ว +1

      Thanks Enrike! I love that too! It is very powerful indeed.