From: Matthew Smillie Date: 2006-06-17T05:58:55+09:00 Subject: Re: undefined method (noMethodError) On Jun 16, 2006, at 21:47, Parv G wrote: >> 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'). That's because you spelled 'initialize' incorrectly. matthew smillie.