txt

  1. E

    Reading TXT file strange behavior new lines??

    While reading a TXT file the following occurs: Such a line like: "31/07/2019 TOTAL" At this line I suppose the "Input #1 , sTxt" instruction is reading read as there was 3 lines in the TXT file: "31" "07" "2019 TOTAL" I expect that this instruction will read the entire line "31/07/2019...
  2. S

    [VBA] extending Autofilter to filter with multiple words, using wildcard

    The following codes only manage to filter for 2 words. (i.e. txt, txt) When user inputs more than 2 words to filter (i.e. txt, txt, txt), an error just returns. Is there any workaround to filter more than 2 words, for a particular column? Thanks! Sub Test() iTxt = InputBox("containing ...
  3. J

    Select value in html dropdown with vba

    I’m trying to select a value on the html dropdown box with excel vba code (as far as I know the html is javascript) but I’m not good at html. I have tried every possible proposal from various forums, without luck. The web page is an internal company page, so unfortunately it cannot be shared...
  4. K

    Txt file convert to .xls

    hello. I wish to convert a txt file that is saved down in my folder into a .xls file. Before I do this however I need to sort by columns and I wish to sort by using the delimited file type - Other | key. Once created as a .xls file. I need to import the file into my workbook under...
  5. S

    How to edit all queries/connections from one delimiter to another?

    In my Excel file, I have imported many txt files with tab delimiters manually (Data tab -> Import data -> From Txt). Each txt file is imported into its own separate sheet. The delimiters are recognized and the data within each txt file is neatly imported into separate columns, as shown in the...
  6. J

    VBA: Find start and end text in TXT file, copy all data in between to specified Excel Column

    I'm trying to get data from multiple TXT files into Excel. Each TXT file represents 1 row of data on the excel workbook. Each section of text the TXT file represents the corresponding column in that row. For example: Everything after "Other Observed Names" would go in a column labeled "Other...
  7. P

    Read 2 files and save in 1 worksheet

    https://pastebin.com/raw/YAYfZ99AHello. I have little trouble. Im really green in VBA but i know about it can be dont in VBA. I have 2 folders with tons of txt all txt have the same name in 2 folders but having another data. ex. Folder1/1.txt Folder2/1.txt Folder1/2.txt Folder2/2.txt Example...
  8. rhino4eva

    import 1 line from txt file

    With ActiveSheet.QueryTables.Add(Connection:="TEXT;T:\JICU20190512123222.txt" _ , Destination:=Range("$A$1")) .Name = "JICU20190512123222" .TextFilePlatform = 850 .TextFileStartRow = 4 .TextFileParseType = xlDelimited .TextFileSemicolonDelimiter =...
  9. M

    How can I fix this function to search all capitalised words in a string against a named range?

    Hi all, I am trying to build a function that I can use to search a selected cell's string and check each capital word (e.g. ART, RESULT) and check against an approved abbreviation list. It will then return the result of disallowed capitalised words in the output. This is the first stage. I then...
  10. RobbieC

    Transposing a range to a .txt file

    Hi there, I have a series of sheets which I have been transposing the contents of to a text file. I have a series of subroutines which 'append' each sheet contents to make a master text file. This has all been working fine, but I have just noticed that it has been failing to append certain...
  11. A

    Split spreadsheet data into tab delimited text files

    Hello guys! I'm new in VBA and I need you help. I need to save data from excel to txt files. I found a code that save data to "xlsx" format, but I need to save to "txt" tab delimited text. When I switch ".xlsx" to ".txt" in the code, the saved files came out like they're corrupted. Thank...
  12. E

    Splitting a table and formatting problem

    <tbody> A B C D E 38 No OP MO Txt Co 39 112254 10 04 FSR Yeah ABB 40 114554 20 04 FLB Whatever ABB 41 144754 10 04 BBA Etc Claptrap 42 112266 40 04 KKT Blah Claptrap 43 123457 15 04 JJF Blah Claptrap 44 111365 10 04 MMN Blah Gardner...
  13. M

    Excel VBA Center header/footer “Align Left”

    Is there any way to align Center Header in Excel? I know there is no any built in solution but is there any VBA code that would work. I have been trying copying cells to header, setting center header with VBA but my Center Header is "Align Center" all the time. I have even found very complex...
  14. E

    Importing contacts from a .TXT to .CSV - Gmail compatible

    Hi, I have a .txt file of around 700 contacts (email addresses only) each separated by a ','. As I am unable to import a .txt file to Gmail I have imported these contacts into a CSV file via Excel. However when I try to import this into Gmail the import fails. Could anyone please tell me...
  15. N

    Opening a txt file and copy all to excel using VBA

    Hello. One of the systems I use will only do Txt files therefore there is no way round it. I need a piece of code that will open a named txt file and copy the whole document into excel. I then need it to delimit it with the comma into readable cells. Any help is appreciated.
  16. I

    How do I display an existing .txt file with a userform command button?

    Hello, I have a .txt that I would like to display when a user clicks my 'Help' command button on a userform I have created. How can I accomplish this? Thanks
  17. B

    Read a .txt file via URL

    Dears, I'm actually working with the following code to read a .txt file. Sub DepAptSID() 'Esta função coleta as saídas disponíveis nos aeroportos Dim fn As String, txt As String, delim As String, DepSID() As String, SID As String Dim i As Long, ii As Long, iii As Long, n As Long, X...
  18. B

    Cell value flagged as <> when I can see it IS =???

    Hi Folks, Col K is populated by formula = $A1&$B1,$C1,$D1,$E1 and may be txt or numeric as processed internally elsewhere. Col N is populated manually, txt or numeric Col M =IF(AND($K1="",$N1=""),"",IF($K1<>$N1,"Error","OK")) The object is to determine whether a manual entry is same as...
  19. D

    Excel 2016 3 Txt Files to 3 worksheets in 1 workbook

    Hi, My latest roadblock: I am trying to pull txt files from a specific location into 3wroksheets so the workbook formulas will do the rest of the work. I already have the names of the txt files being created to use. Filenametxt1, Filenametxt2, Filenametxt3 And the worksheets are in the...
  20. M

    Excel VBA Change Text Filename (remove time)

    Hi Guys, How do I programmatically change the file name of a txt file using excel vba, I need a script where it will go through a folder which consists of txt files and change the txt filename by removing Time. Original Filename: ABC_ABCDE_ABCD_YYYYMMDDTTTTTT.txt New Filename...

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