If linha >= x And linha <= y Then
chunk copy+pasted so many times the procedure length actually goes beyond the limit? If so, then yeah @Ralph's link has your answer, and your question is a bit unclear. That said, if you're looking for help breaking it down into more manageable pieces and making it more efficient altogether, Code Review remains the place to go. — Mat's Mug 14 secs ago00:00 - 17:0017:00 - 00:00
00:00 - 17:0017:00 - 00:00