Thanks, Jim.
"Jim Thomlinson" wrote:
> strTag is a string. The Int function expects a number and it will return the
> integer potion of that number. As a guess you are looking for the CInt
> function which takes a string argument and coerces it to an integer. CLng
> might be more approproate as it returns a long which is generally speaking
> more efficient and less prone to failure...
> --
> HTH...
>
> Jim Thomlinson
>
>
> "Sprinks" wrote:
>
> > Excel 2003 SP3, Windows XP 5.1 SP3
> >
> > The following call is generating the subject error, highlighting intRow.
> > Can anyone explain it to me?
> >
> > ...Calling procedure
> > strTag = Trim(ActiveControl.Tag)
> > intRow = Int(strTag)
> > ActiveSheet.Shapes("R" & strTag) = _
> > Round(GetMeansResult(intRow, Val(ActiveSheet.Shapes("txt" &
> > strTag)), 0))
> >
> > ...GetMeansResult function
> >
> > Function GetMeansResult(Index As Integer, X As Single)
> >
> > Thank you.
> >
> > Sprinks
|