txt

  1. J

    Load txt file into sheet on Open?

    Hi, unsure how to do this from a Txt file In the following format Name,Country Jim Jones,Australia Bob Frank,UK Want it to load into my sheet "Users" and overwrite current contents. Any help appreciated
  2. M

    Text file into excel sheet

    I have a requirement like, 2018 - Folder, Inside - 201801 to 201812 Inside - 201801 I may have 0 to n number of .txt files. I have copy the txt file data into excel sheet. like that upto 201812 Example : Inside 201801 I have 3 txt files then my output will be three sheets under single excel...
  3. Q

    Macro for importing user selected text file

    New to macros so am feeling pretty dangerous. I'm trying to automate importing txt files and saving as .xlsx which I am able to record macro that imports a specific file and saves it accordingly. However now trying to make it a bit smarter in that I'd like the user to be prompted to select the...
  4. E

    Update a TXT file data

    I have a TXT file where I can save and read data (I use it as a database) with open for input / output / append. How do I update a record in this file? Like change a phone number of someone. Thanks
  5. J

    Modify specific things a txt file

    Hello I have now searched all over the net but can't find any good solutions. Is it possible to modify something specific in a txt file? I have the following file, where I would like to multiply the red numbers by -1. I have many of these files and they all have the same "build up". My...
  6. L

    automation error

    'The object invoked has disconnected from its clients' this problem occurs after having used the VBA without a problem for more than a year. Microsoft appearantly used to have threads about this but they are gone. nothing has changed in the VBA or in the imported txt files. Anybody an idea of...
  7. M

    Excel VBA - Using Shell to Open a TXT file in Notepad that Begins with the First Part of the Filename?

    I have a macro which uses Shell to open a TXT file in Notepad. I am trying to get this macro to work with opening a TXT file in Notepad beginning with the first part of the filename; I have listed below my two attempts to have this work (MacroAttempt1 and MacroAttempt2): Sub MacroAttempt1() Dim...
  8. M

    VBA // How to Insert a TXT file to Excel, if I want to get every word in a different cell

    Hi! I would like to insert a TXT file to EXCEL using VBA code. The columns 1-10 would contain the data, and then new row would start. For example: Ella Higginson was born around 1862 in Council Grove, Kansas. A poet as well as a novelist, short story writer, and nonfiction writer, Higginson...
  9. M

    VBA to convert one csv file to txt, just by renaming file

    I have a file in a directory that I need to change its name from filenameNew.csv to filename.txt, any help would be greatly appreciated.
  10. E

    Import Folder with TXT files to Excel

    Hi guys! I've been searchig for hours and cannot get answer how to do it.. I like VBA that ask me to choose folder and than Imports all contents of all TXT files to one sheet. best regards W.
  11. W

    Save each row as txt, with some ects

    Hi everybody, So I have been tinkering with getting excel to save each row as a txt file, without much luck. The format is as follows, Cells (1,1) contains the filename The contents of the first .txt file then needs to be Cells(1,1;1,2) The contents of the second .txt file needs to be...
  12. H

    Macro to delete blank rows in Notepad

    I need a code to delete blank rows in txt file (Opened with Notepad) Or something to delete blank rows in specified txt file. I need these becaue a have a code in Excel to create a txt file but these file is created with blank rows (I don't know why) 'Salveaza ordine.txt Sheets("ordine...
  13. D

    resolve error of "unqualified method of an Office instance"

    on openning a userform with the following code: Option Explicit Private Sub CommandButton1_Click() Unload Me End Sub Private Sub CommandButton2_Click() Dim txt As String Dim i As Integer txt = "" For i = 0 To Me.ListBox1.ListCount - 1 If Me.ListBox1.Selected(i) Then If (txt > "...
  14. Nelson78

    Vba: importing in Excel a table in file txt

    Hello everybody. In the path C:\Users\john.smith\Desktop\filetext I’ve a file txt that contains, substantially, a table. Inside you can see a canonical html language (columns and rows separated by th tr td …). How can I import it in Excel via Vba? Thank’s in advance.
  15. K

    Modify VBCode that creates CSV text file

    Excel 2013 Layout: Cell A1: stores the network drive letter (currently set as P:) Cell A2: stores the name of the file (currently set as Test.txt) Row 4 has column headings: 1st Value, 2nd Value, 3rd Value Rows 5 to forever, but only Columns A, B & C have data in them. Currently I just...
  16. E

    Read a TXT file

    I have a txt file like that: INCOME| NAME|MARY DATAX|100 DATAX|120 NAME|MARY DATAY|100 DATAY|120 NAME|BILL DATAX|180 DATAX|170 I need a code that reads this TXT file and return this txt file: Name: Mary DATAX 100 DATAX 120 DATA Y 100 DATA Y 120 Name: Bill DATAX 180 DATAX 170 I know how to...
  17. N

    VBA Script Save as TXT CSV, UFT-8, set specific field and txt delimeter and Quote all TXT cells??

    I have been trying for a few days to crack this. We have a Lotus Notes DB that will only accept and import of a file only if it is saved in this method 1) Opening a XLS in Open Office 2) Selecting all cells (always a single worksheet) and setting Default Formatting 3) Saving as TXT CSV...
  18. S

    Why does my text file open in a new workbook?

    Hello! I googled a code to open a text file and I can't remember where I found the code. To be honest, I don't know what a querytable is yet. The file format is actually a "*.eft" which can be opened up in notepad. I want to achieve 2 things: open the textfile in my CURRENT workbook and the...
  19. L

    Loop through folder and covert txt files to excel and save

    Hi VBASuperUsers, With the growing knowledge I have on VBA along with great help from the forum, I've completed the below coding that will open my text file in excel and format the way I need it. My next obstacle is getting this code to Loop through a folder with multiple txt files and convert...
  20. S

    Convert CSV files to TXT using VBA

    I need to convert these CSV files to TXT, I succeeded with below code. However need help with two things: 1) This code should be applied to all CVS files in given path. Because It gave result on only given number. 2) I want on TXT top line as: LEDES98BI V2[] instead of LEDES98BI...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top