OK, I figured out that if I store the starting and ending ranges in an array (longcount) and then access those ranges I can create lines automatically, but now I'm getting another error from this line:
widthL = IIf( longcount>3, Ref (SD*StDev(C, Longcount),-shift ),Null ) ; It's telling me that it expects another type argument here. The funny thing is this will work fine with StdErr but not StDev, which is what I need. Any ideas what's wrong now? Chuck
