Quote Originally Posted by muhammad susanto View Post
sorry, guys..i am a mistake..my code that's i want with criteria like this :

- base upon count of of each rows with assuming, if count of rows = 0 or 1, nothing inserted row;
- if count of rows >= 2, inserted row minus 1, for example :
count of row = 2.....result inserted row = 1
count of row = 3.....result inserted row = 2
count of row = 5.....result inserted = 4
etc....

i hope somebody would help me.

regards...
m.susanto
That's what the code does, isn't it ?