• Need help please


    The below array is looking at column D , how can I change it to look at column H




    A-------B---------- C------- D ----------E---------------F-------------- G-------------H-------I----------J-------
    SN#----ITime-----OTime---Reg Code---NCount------FLocation------Tlocation------Type---1SEQ-------New Seq
    YYA61--0015------1345----$YYA--------223----------XXVV-----------XXWW---------77L----6204825---6204825




    Thank you for you kind help.

  • Re: Help in Array


    Thank you Jindon,


    The before/after result is the same , the VBA array is currently looking at Column D to store the data in the worksheets "A100","Non", "B200" so forth so on.


    What I needed was the array to look at column H to store the data in the above mentioned worksheets.


    Thank you for your kind help.

  • Re: Help in Array


    Understood Stephen, putting the code in a tag , sorry , I forgot how to use the code tags, is it part of the advanced code insertion process ?


    Thank you for adding it for me. appreciated.

  • Re: Help in Array


    Nothing in what you have posted refers to any columns.

    Rory
    Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why. Programmers combine theory and practice: nothing works and they don’t know why

  • Re: Help in Array


    Thank you Appreciated.


    The above code looks at the value $YYA in column D under the header "Reg Code", I want it to look at column H under the header "Type".

  • Re: Help in Array


    You're missing the point. Nowhere in the code you posted does it refer to any columns, so there's nothing there to change.

    Rory
    Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why. Programmers combine theory and practice: nothing works and they don’t know why

  • Re: Help in Array


    Hello Jindon,


    Please accept my apology , i know your were helping me a lot , in fact, the current VB code was done by you back then.


    thank you.


    May be i did not explain what i really needed in the VB code , but please note that :-


    The current VB code is :-





    What I needed was that the code look at column H and place the data to the correspondence desk


    e.g: if column H data is 77L it places the whole row information in a desk called "A100" , if column H data is 77X then it places it in a desk called "B100" so forth so on.


    A-------B---------- C------- D ----------E---------------F-------------- G---------H-------I--------------J-------
    SN#----ITime-----OTime---Reg Code---NCount------FLocation------Tlocation------Type----1SEQ-------New Seq
    YYA61--0015------1345----$YYA-------223---------XXVV----------XXWW---------77L-----6204825----6204825


    your help is really appreciated.


    Thank you.

  • Re: Help in Array


    Hello Jindon,


    Thank you Again, Here is the current VB code you kindly provided me back then with little adjustment.


    Thank you.


    May be I did not explain what I really needed in the VB code , but please note that :-


    The current VB code is :-





    What I needed was that the code look at column H and place the data to the correspondence desk


    e.g: if column H data is 77L it places the whole row information in a desk called "A100" , if column H data is 77X then it places it in a desk called "B100" so forth so on.


    A-------B---------- C------- D ------------E---------------F-----------------G--------------H-------I--------------J-------
    SN#----ITime-----OTime---Reg Code---NCount--------FLocation--------Tlocation------Type----1SEQ-------New Seq
    YYA61--0015------1345----$YYA---------223-----------XXVV-------------XXWW--------77L-----6204825----6204825


    your help is really appreciated.


    Thank you.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!