Page 1 of 1

[Solved] On Error GoTo - Could not make it work

Posted: Fri Oct 19, 2018 7:02 pm
by gurkand
Hello All,
Trying to ignore records with values causing calculation errors. All I ned is to simply continue with the next record. Have the following:

...
Do While 1=1
On Error GoTo xxthere
...
<code>
...
xxthere:
Loop
...

I tried putting the On Error statement to before Do, did not help.

The error I receive is: Inadmissable value or data type. Index out of defined range.

What am I doing wrong?

Thanks in advance for the help.

Re: On Error GoTo - Could not make it work

Posted: Fri Oct 19, 2018 10:50 pm
by Zizi64
Please upload the full codelist of your macro, and a relevant ODF type sample file here.

Re: On Error GoTo - Could not make it work

Posted: Fri Oct 19, 2018 10:55 pm
by gurkand
Zizi64 wrote:Please upload the full codelist of your macro, and a relevant ODF type sample file here.
Thanks.
I have fixed the problem now, it was caused by the 1's in the RND. I was not aware that RND can produce 1...
No need to follow this On Error issue now.