I have a macro that works (and I donít think I need any new code) but need help with a change: I need the code to change the cell location where itís currently getting a reference number (Iím sure Iím using the wrong term but bear with me).
Using my Excel sheet the macro searches for a 15 (as a last number 20-15, 1-15 etc.) in cells B30, F30 and J30. When it has a positive result it references the cell below it and uses that number to search cells E1:E12 for a match and when it finds one write the data from cells cells B30, F30 and J30, plus one (see example below) in the adjacent cell to the right of it.
Example: The code has found a 7-15 in cell B30, so a positive result, it then searches the cell below for a number, B31 which has a 1 in it. 1 is the search number in the search range E1:E12. Cell E1 has the number 1 so the code would write 7-15, from cell B30, in the adjacent cell to the right (F2) and increase the last number by 1 so it becomes 7-16.
The change I would like to make is instead of using the cell below B31 in above example it would use cell A31 (cell E31 and cell I31 for the other rows) instead. Thatís it.
I also have a general question about different versions of Excel. I been using this code on Excel 2003, XP Pro and now I switched to Win 7 Office 2007 (I know still way behind, hold the jokes) but the code does nothing. I have changed the security setting for macros to allow everything and still nothing. Is it the code or any advice sure would be appreciated?