Page 5 of 11 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 102

Thread: VBA Copy Rows From One Workbook To text csv File Based On Count In Different Workbook. Cross Posted Chaos

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0
    No Doubt Bro Obviously i am waiting for Alan Sir Only
    But i dont want to irritate Alan bcoz he has helped me alot
    So meanwhile i am thinking about the different ways to solve the same bcoz if Alan was unable to do the same then i will require a
    a different strategy to solve the same

  2. #2
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    240
    Rep Power
    8
    different way? post#33 - Power Query
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  3. #3
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0
    No we will solve the Problem with 2 macros
    Bcoz we will break the process into 2 pieces one macro to count total no. of rows
    & second macro for copy paste to csv
    It will be easier to understand & easy to solve

  4. #4
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,458
    Rep Power
    10
    Quote Originally Posted by fixer View Post
    ... i am waiting for Alan Sir Only
    But i dont want to irritate Alan bcoz he has helped me alot
    So meanwhile i am thinking about the different ways to solve the same bcoz if Alan was unable to do the same then i will require a
    a different strategy to solve the same
    I cannot solve a problem if I do not know what the problem is.
    I cannot answer a question if I do not know what the question is.
    The problem in helping you is always the same. It is not VBA Excel problem. Problem is you are not English. You do not understand English language. Problem is always you and English language.

    You ask Question A - We give Answer A
    You ask Question B - We give Answer B
    Usually, those are not the answers that you want...
    You want Answer F - But you cannot speak English. You cannot understand English. You cannot write English. You do not understand English language.
    You try to ask question F. But you fail. You ask any question. You ask always wrong question. You write mostly rubbish.

    We must keep trying to guess what you want




    If you want more help from me – Do all this:
    _1) Read this : https://excelfox.com/forum/showthrea...ll=1#post13222
    _2) Read this : https://excelfox.com/forum/showthrea...ll=1#post13208
    _3) Run macro Sub Step14_DogShit() https://excelfox.com/forum/showthrea...ll=1#post13217

    _4) Now tell me what that macro does for you? - What results do you get ?

    _.____

    You have the whole day , Today , to do this all. Take your time. Do it all. Read it all. Do it slowly. I will not answer any more here today. This is my last post here today.
    I will look again tomorrow
    .




    If you cannot understand what we write, and if you do not do what we ask, then only God can help you. God can see inside your head. God knows what is your question. We are not God. We cannot see inside your head.
    Last edited by DocAElstein; 05-06-2020 at 03:49 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!!

  5. #5
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0
    U haven't understood the problem
    but u have mentioned something plz see the sample pic of the same Doc Sir
    U can run the macro and u can see the output is this the same out put which u get after runing the macro which u mentioned in the pic
    No Probelm Doc Sir
    i am breaking the process in two parts
    1)first macro for counting the rows
    2)second macro for copy paste
    Attached Images Attached Images

  6. #6
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    240
    Rep Power
    8

    Cool

    the problem is because you trying open csv (result) by double click which is not a proper action
    you should import csv with defined delimiter (tab)
    with double click, Excel ignore tab as delimiter and you've all data in single column

    as i said this is a comma separated values type of file and if you define delimiter in your vba comma instead of tab it will work with dbl click or just import

    Alan did his job great with your requirement and you got csv with copied data, but what will you do with this csv (and problems with that) is on your side

    regards
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  7. #7
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0
    sandy sir plz share the complete working code if u know
    Bro i am not that much smart in vba
    U r giving me the hint
    But i dont know much about vba
    I am not a Vba coder
    My dream is to become a Speculator
    & without u I can't create a system & if i am unable to create a system then i cant achieve my dream
    Last edited by fixer; 05-06-2020 at 07:12 PM.

  8. #8
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,458
    Rep Power
    10
    Quote Originally Posted by fixer View Post
    My dream is to become a Speculator ...
    This will be very difficult for you to achieve your dream if you cannot speak English. In this world, you will not achieve very much if you cannot master the English language!!





    The biggest problem remains. You are incapable of communicating with us. You either ignore us, or you do not understand most of what we write and do for you.
    You are totally incapable of telling us what you want.
    It is impossible for us to understand you, because you can not communicate in English.



    Sandy is probably getting close to guessing what you want: He is very clever, he can almost read your mind…
    Your current question seems to be related to opening a file with Excel.
    Your current question seems to be related to opening a text file and displaying it in a particular format in Excel
    But I am not sure.
    Everything that you write makes no sense in English.




    For today, I will just try again to explain what is different file types here:
    https://excelfox.com/forum/showthrea...ll=1#post13248
    https://excelfox.com/forum/showthrea...ll=1#post13247

    That is all I am doing for you today



    This is all that I am doing for you today.
    Tomorrow I will look in again to see if you have managed to tell us in English language what you want.

    Alan
    Last edited by DocAElstein; 05-07-2020 at 02:59 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!!

  9. #9
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    240
    Rep Power
    8
    I think you got a vba code in the first few posts from Alan
    the code generate result with tab as delimiter but you trying to open this csv in Excel by double click not import with defined delimiter (tab)
    you got what you want but you didn't say what you want to do after vba generate csv file

    you should use this option if you want "open" csv with tab delimiter in Excel
    frmt.png
    Last edited by sandy666; 05-06-2020 at 07:30 PM.
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  10. #10
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0
    No i want to make it automatic, vba code should do all the work
    I will not do any manual work

Similar Threads

  1. Replies: 4
    Last Post: 04-10-2014, 10:58 PM
  2. Replies: 2
    Last Post: 09-18-2013, 12:30 AM
  3. TO convert Excel entire workbook in csv format
    By pritee in forum Excel Help
    Replies: 11
    Last Post: 08-16-2013, 11:28 AM
  4. Replies: 4
    Last Post: 06-20-2013, 04:25 PM
  5. Replies: 9
    Last Post: 09-09-2011, 02:30 AM

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
  •