From: Parv G Date: 2006-06-17T05:47:34+09:00 Subject: Re: undefined method (noMethodError) > Um, that's because you reset @col to 'A' every time you call nextcell. > > get rid of that line in nextcell getting rid line *** @col = 'A' *** results in variable @col being nil. And i can't compare nil with @maxCol (@maxCol = 'H'). -- Posted via http://www.ruby-forum.com/.