2 Replies Latest reply: Jan 29, 2014 10:24 AM by Peter Cammaert RSS

    Change position of sheet objects

      Hi all,

       

      I'm trying to move specific objects via a macro.

       

      For i = lBound(Objects) To uBound(Objects)

       

      if vObject.GetObjectId = "Document\CH06" then

        set vObject = Objects(i)

       

        pos = vObject.GetRect

       

        pos.left = 238

        pos.top = 79

        vObject.SetRect(pos) ' vObject.SetRect pos

      end if

      next

       

      On the Qlikview desktop works fine, but on the server the object dont go to the new position(it moves, but not to the right position). I cann't understand why.

      After running the macro the new position of my object is: left=76 & top=25

       

      Has anyone tried something like this?