I have read the above and searched, but cannot find how to amend the following piece of code so that all
rectangles are extended to the hard right edge.
if anyone could point me in the right direction that would be very much appreciated.
Happy new year.
Hugs Kate xx
ObjectCreate is irrelevant, one you create an object you can't create it again.
Either you have to delete it and recreate it, or you change the second coordinate.