About 6,710,000 results
Open links in new tab
  1. Workbooks.OpenText Error "Expected function or variable"

    Why does my code below not work? It highlights the .OpenText part and states: Expected function or variable Dim Indata As Excel.Workbook Set Indata = Workbooks.OpenText …

  2. System.IO.StreamReader vs. Get-Content vs. System.IO.File

    File.OpenText likely does a few checks on the path that you provide before instantiating an instance of StreamReader.

  3. MS Excel 2019 - VBA - Workbook.OpenText not correctly using …

    Workbooks.OpenText Filename:=filetoopen, Origin:=65001 Set wbDownload = ActiveWorkbook However this opens the file with the substituted ascii characters still with the Origin 65001 - …

  4. C# Help reading foreign characters using StreamReader

    StreamReader reader = new StreamReader(inputFilePath, System.Text.Encoding.ANSI); using (reader = File.OpenText(inputFilePath)) Thanks Update 1: I have tried all encodings found …

  5. Excel VBA: importing CSV with dates as dd/mm/yyyy

    Apr 14, 2010 · I have data in a csv file with the first column formatted dd/mm/yyyy. When I open it with Workbooks.OpenText it defaults to mm/dd/yyyy until it figures out that what it thinks is the …

  6. How to open Text File with .OpenText in VBA that starts with first ...

    I've come across a nasty little bug in Excel VBA's .OpenText method.. It errors on opening any text or CSV file when the first two letters are upper-case "ID". Here is the article from MS so …

  7. Workbooks.OpenText not parsing csv files properly Excel 2016

    Feb 13, 2017 · Workbooks.OpenText not parsing csv files properly Excel 2016 Asked 8 years, 9 months ago Modified 5 years, 2 months ago Viewed 16k times

  8. Import semicolon separated CSV file using VBA - Stack Overflow

    Oct 6, 2016 · Workbooks.Open fileName:=strPath & "thisFile.csv" data is separated by commas, so it looks like that: The same wrong result pops out when I am using OpenText function

  9. How to programatically define FieldInfo parameter on Workbooks ...

    Jul 20, 2018 · The Workbooks.OpenText method takes a parameter called FieldInfo to determine the format types in each column. For example the following code will open a text file and give …

  10. opening a text file with excel opentext file using C#

    I want to open a txt file with excel which is like a "csv" file but instead of a comma, I want to use another character like start (*) after opening I would like to save it as an xlsx file how can...