Hi there,
I think a more efficient way to do this might be this way. I assume all of your possible X and Y coordinates are in hidden text values. As long as they have a consistent name scheme, like each day X value is XCoord1, XCoord2, XCoord3, etc.
When assigning PosX and Y values from a string, you have to convert to a double, Cdbl(). This should get you pretty close.
dim CircledDate as xpBaseObject
dim DateCircled as xpTextObject
dim XCoord, YCoord as xpTextObject
Self.GetObjectByName("DateCircled", DateCircled)
Self.GetObjectByName("CircledDate", CircledDate)
Self.GetObjectByName("XCoord" + DateCircled.text, XCoord)
Self.GetObjectByName("YCoord" + DateCircled.text, YCoord)
CircledDate.PosX = Cdbl(XCoord.text)
CircledDate.PosY = Cdbl(YCoord.text)
Does this make some sense? It works in my head, just need to translate this to the keyboard.
Hope this helps!
Mike
#XPression