Posts by yudisulistiyo

    Re: merging row based on unique value in colum A


    Quote from jindon;663705

    Then try change

    Code
    With Sheets("result").Cells(1).Resize(n, UBound(a, 2)) 
             '.Columns("r").NumberFormat = "@"
            .Value = a 
            .EntireColumn.AutoFit 
        End With


    to

    Code
    With Sheets("result").Cells(1)
            For i = 1 To n
                For ii = 1 To UBound(a, 2)
                    .Cells(i, ii).Value = a(i, ii)
                Next
            Next
            .CurrentRegion.EntireColumn.AutoFit
        End With


    i didnt understand why in few days ago when i run this code

    Code
    With Sheets("result").Cells(1).Resize(n, UBound(a, 2)) 
             '.Columns("r").NumberFormat = "@"
            .Value = a 
            .EntireColumn.AutoFit 
        End With


    i always got error message.
    but now both of code above its work perfectly,
    thanks jindon for ur help its very nice code and very helpful for me thanks jindon youre best...

    Re: merging row based on unique value in colum A


    OK jindon i put in "Result" sheet for result. oh ya jindon i get your code from other thread but when applied ur code in my file that have more than 44k rows the code resulterror message 400.. here my file jindon. because my file have large size i cant upload file above 1MB here, i upload it in other place here for that link jindon http://www.mediafire.com/view/?cxpegpci6fkmj61 thanks jindon for ur reply

    im newbie for vba programming, i have more than 44K rows of data and have 3 column A,B,C. and i want to merge that based on column A as key. i used code from this forum in this link http://www.ozgrid.com/forum/showthread.php?t=156024, my problem is code always return error 400 when i executed this


    basically my file contain data like here


    A B C
    12 a b
    12 c d
    13 a ee
    .
    .
    .


    my goal file like here
    A B C
    12 a,c b,d
    13 a ee
    .
    .
    .
    more details for my file in attachment
    can give me solution? thanks so much

    Re: Transpose comma delimitted cell to multiple rows and copy adjacent cell down



    thanks Stanley D. Grom i have try ur code its very great and helpfull for saving my time now :thumbcoo:

    Re: Regular Expressions in VBA


    Sub test2() Dim txt As String txt = "6-methyl-5-hepten-2-one" With CreateObject("VBScript.RegExp") .Pattern = ".*((\d+-\D+){2})(?!.)" If .test(txt) Then MsgBox .Replace(txt, "$1") End If End With End Sub code is awesome jindon , i want to ask to you how if txt applicated in cell how if i want to find that txt in cell and replace it with your code. can you help me to give me example with your code to find replace string in cell thanks jindon