From: James Edward Gray II Date: 2005-07-29T00:36:17+09:00 Subject: Re: Newbie question On Jul 28, 2005, at 10:26 AM, Greg Lorriman wrote: > appClasses and tc_appClasses are my files. The syntax error is on > the last > line of this in appClasses.rb : A "syntax error" on the last line almost always indicates a missing "end". Get in the habit of checking that first when you see the complaint. In this case, I believe you meant: def setFromNativeRef!(nativeRef) md=/\D+/.match(nativeRef) if (!md) raise 'Invalid cell reference :'+nativeRef end # <= James added this line! colStr=md[0].upcase if colStr.length==2 high=colStr[0]-65 low=colStr[1]-65 @col=high*26+low else @col=colStr[0]-65 end @col=md[0] @row=md.post_match self end Hope that helps. James Edward Gray II