Results 1 to 10 of 30

Thread: Delete rows based on match criteria in two excel files, 1 might be .csv file .Opened in Excel=Fail Chaos

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #22
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Try number 8947918 , attempting again to explain sommething to Avanash

    Alert 24 Mai Out..csv does not have a Sheet1.
    Alert 24 Mai Out..csv does not have any worksheets
    Alert 24 Mai Out..csv is not an Excel file. It is a text file. A text file does not have sheets. It is text data only

    Alert 24 Mai Out..csv is not stored as a Notepad – that is nonsense
    Alert 24 Mai Out..csv is not in Notepad
    Alert 24 Mai Out..csv is not Notepad – that is nonsense
    Alert 24 Mai Out..csv is not a Notepad file


    Your system doesn't support any files instead of csv
    =
    Your system doesn't support any files instead of Text files
    =
    Your system doesn't support any files instead of a long single Text string
    Code:
    Your system doesn't support any files instead of csv = Your system doesn't support any files instead of Text files = Your system doesn't support any files instead of a long single Text string
    Because ( Bcoz )
    csv File = Text File = single Text string

    You still do not understood any of the game of csv file
    OR
    There are other issues, but you are totally incapable of explaining them to anyone.
    It is not possible for you to explain because:
    _a) You are very bad at comunicating in English
    _b) You do not understood any of the game of csv file
    _c) You understand almost no VBA



    I try again……



    You can open ( manually ) Alert 24 Mai Out..csv with a Text editor, ( for example, Notepad is a Text editor )
    Like This : Alert 24 Mai OutDotDotcsv.JPG : https://imgur.com/XgoYIqc
    Attachment 2957
    NSE,236,6,>,431555,A,,,,,GTT
    NSE,25,6,>,431555,A,,,,,GTT
    NSE,100,6,>,431555,A,,,,,GTT
    NSE,22,6,>,431555,A,,,,,GTT
    ,,,,,,,,,,
    ,,,,,,,,,,
    ,,,,,,,,,,
    ,,,,,,,,,,
    ,,,,,,,,,,
    ,,,,,,,,,,
    ,,,,,,,,,,
    ,,,,,Entire row of row 3 & row 4 both will be deleted after runing the macro,,,,,





    you can open automatically Alert 24 Mai Out..csv with Excel VBA like this:
    Code:
    Sub OpenATextFileWithExcel()
    Dim PathAndFileName As String
     Let PathAndFileName = ThisWorkbook.Path & "\csv Text file Chaos\" & "Alert 24 Mai Out..csv" ' CHANGE TO SUIT                  Share ‘Alert 24 Mai Out..csv’ : https://app.box.com/s/yseazrdyfloij4ktrhy4ejdpzl0cx02e
    
    ' Open a csv text file in Excel
    Dim Wb As Workbook
     Set Wb = Workbooks.Open(PathAndFileName)
    End Sub
    _____ Workbook: Alert 24 Mai Out..csv ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    1
    NSE
    236
    6
    >
    431555
    A GTT
    2
    NSE
    25
    6
    >
    431555
    A GTT
    3
    NSE
    100
    6
    >
    431555
    A GTT
    4
    NSE
    22
    6
    >
    431555
    A GTT
    5
    6
    7
    8
    9
    10
    11
    12
    Entire row of row 3 & row 4 both will be deleted after runing the macro
    Worksheet: Alert 24 Mai Out.

    This is not a csv file. It is not a text file. It is not Alert 24 Mai Out..csv This is not a workbook. This is not csv Workbook. This is not a Excel csv File
    It is Excel. Excel is showing values from the text file,Alert 24 Mai Out..csv ( https://chandoo.org/forum/threads/co...2/#post-263505 )
    This is not a result !!!!!
    If you try to open a text csv file in Excel, Excel will try to put the values into cells. It may work sometimes. It may not work sometimes. So if you open a .csv text file with Excel it will sometimes work. It will sometimes not work. So it is bad to do this.




    You can open ( manually ) Alert 24 Mai Out..csv with Excel
    Like This : Alert 24 Mai OutDotDotcsv ManuallyOpenWithExcel..JPG : https://imgur.com/7pAaLVx
    Attachment 2956
    _____ Workbook: Alert 24 Mai Out..csv ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    1
    NSE,236,6,>,431555,A,,,,,GTT
    2
    NSE,25,6,>,431555,A,,,,,GTT
    3
    NSE,100,6,>,431555,A,,,,,GTT
    4
    NSE,22,6,>,431555,A,,,,,GTT
    5
    ,,,,,,,,,,
    6
    ,,,,,,,,,,
    7
    ,,,,,,,,,,
    8
    ,,,,,,,,,,
    9
    ,,,,,,,,,,
    10
    ,,,,,,,,,,
    11
    ,,,,,,,,,,
    12
    ,,,,,Entire row of row 3 & row 4 both will be deleted after runing the macro,,,,,
    13
    Worksheet: Alert 24 Mai Out.

    This is not a csv file. It is not a text file. It is not Alert 24 Mai Out..csv
    This is not a workbook. This is not csv Workbook. This is not a Excel csv File
    It is Excel. Excel is showing all text from the text file,Alert 24 Mai Out..csv . It is showing it in the first column.
    This is not a result:
    If you try to open a text csv file in Excel, Excel will try to put the values into cells. It may work sometimes. It may not work sometimes. So if you open a .csv text file with Excel it will sometimes work. It will sometimes not work. So it is bad to do this.




    If you try to open a text csv file in Excel, Excel will try to put the values into cells. It may work sometimes. It may not work sometimes.
    Sometimes the values will be put into the cells. Sometimes the entire text , including the separating comma , will be put in the first column, ( https://excelfox.com/forum/showthrea...ll=1#post13369 )
    So if you open a .csv text file with Excel it will sometimes work. It will sometimes not work. So it is bad to do this.





    Share ‘Alert 24 Mai Out..csv’ : https://app.box.com/s/yseazrdyfloij4ktrhy4ejdpzl0cx02e
    Last edited by DocAElstein; 06-07-2020 at 05:26 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

Similar Threads

  1. Delete One Row From A 2D Variant Array
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 18
    Last Post: 02-23-2020, 03:10 PM
  2. Replies: 6
    Last Post: 03-26-2014, 03:04 PM
  3. Replies: 1
    Last Post: 02-25-2014, 10:55 PM
  4. Delte a specific column and does not delete the top row
    By jffryjsphbyn in forum Excel Help
    Replies: 1
    Last Post: 06-13-2013, 02:00 PM
  5. Replies: 4
    Last Post: 03-22-2013, 01:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •