Originally Posted by
stnkynts
The primary thing that is messing you up is Cells(i, -4).Value. In your situation, there is no -4 column. It doesn't exist. Why don't you let us know what cell references you are actually wanting to use so we can rewrite the code for you. A sample workbook would make things easier.
here is the whole Code with a sample workbook I managed to get rid of error message related to trying to look for cells outside the work sheet but the code does not what it supposed to,
the conditions are on column C and I and value to transpose are on column M
Can you please see where the arguments falls and whether I could have smaller code ? not sure if VBA allow for two variables/dimensional arguments and if so how..
Thank you
Bookmarks