Posts by Terrry

    Hi guys, I need some advice regarding the following problem, I hope you can help me out. I have a sheet1 and sheet2 that look like this:


    Column1 and column2 are given in sheet1 while the rest should be filled with a macro. Sheet1.column2: if a cell is a number, go to sheet2, find that number and paste the numbers attached to it. Here is how sheet1 and sheet2 look like:
    [ATTACH=JSON]{"data-align":"none","data-size":"medium","data-attachmentid":1203428}[/ATTACH]


    If it's some text in sheet1.column2 then use the information from sheet1.column1(for example in cell B5, use the info from A5), go to sheet3 find the correct row using the info and paste the numbers back to sheet1 same as in the first case.
    Sheet3 looks like this:
    [ATTACH=JSON]{"data-align":"none","data-size":"medium","data-attachmentid":1203429}[/ATTACH]



    I have a macro that does this, however I need it modified in a way such that when it's a number in column2 and that number doesn't exist in sheet2 macro acts as it is a text and goes to find numbers based on criteria of column1.Currently it just leaves it blank. This is my current macro:


    Thanks in advance!