What I am doing is:
I am selecting a block, finding the first empty value and using it's integer number in a "select case" procedure
This is done within a "For each" procedure. The second time the "For each" procedure enters the block, the block attribute has been filled, wich makes the integer increase. The result is, that my block is completely filled. I would like it if only the first empty integer would be used as the criterium by wich the Select....End Select procedure fills the block.Code:Select Case i Case 2 - attval (i) = "A" Case 4 - attval (i) = "B" etc.
I tried doing this by putting a counter within the procedure that would only allow the macro to run if the counter value was 1. No luck, I don't quite understand why. Then I thought perhaps I could change the integer to a constant somehow, but the integer did not want to be changed. I'm running out of ideas, so does anyone have some other ideas?