Loading ...
Sorry, an error occurred while loading the content.

Re: determining whether a row/cell is selected

Expand Messages
  • karsten_natebus
    Hallo Rick, ... or ... See also msg 5305. Set objDoc = Session.ActiveDoc; If (Not objDoc) Write Console Kein aktives Dokument ; LeaveSub; EndIf If
    Message 1 of 4 , Aug 6, 2004
    View Source
    • 0 Attachment
      Hallo Rick,

      >>Is there any way to determine whether the user has selected a row
      or
      >>cell?

      See also msg 5305.

      Set objDoc = Session.ActiveDoc;
      If (Not objDoc)
      Write Console 'Kein aktives Dokument';
      LeaveSub;
      EndIf
      If (objDoc.Objectname Not = 'Doc')
      Write Console 'Kein Frame-Dokument';
      LeaveSub;
      EndIf
      Set objTbl = objDoc.SelectedTbl;
      If (Not objTbl)
      Write Console 'Keine Tabelle aktiv';
      LeaveSub;
      EndIf
      Set objTextRange = objDoc.TextSelection;
      If (Not objTextRange)
      Write Console 'Kein Textbereich ausgewählt';
      Set objRow = objTbl.TopRowSelection;
      Else
      Write Console 'Textbereich ausgewählt';
      Set objCell = objTextRange.Begin.InTextObj;
      If (objCell.Objectname Not = 'Cell')
      Write Console 'Keine Zelle';
      LeaveSub;
      EndIf
      Set objRow = objCell.CellRow;
      EndIf
      Write Console objRow;
      Set objRow.RowStart = RowTopOfPage;
      Write Console objRow.RowStart;

      Update DocObject(objDoc) Hyphenating;



      best regards
      Karsten 'MAC' Natebus
      Dipl.Ing.(FH), EMD
      ---------------------------------------------------
      mailto:karsten.natebus@b...
      http://aktd.natebus.de
      Demnächst verfügbar: Deutsche Online-Hilfe für FrameScript.
    • Rick A. Henkel
      Perfect. Thanks to both of you. Rick
      Message 2 of 4 , Aug 6, 2004
      View Source
      • 0 Attachment
        Perfect. Thanks to both of you.

        Rick

        > See also msg 5305.
      Your message has been successfully submitted and would be delivered to recipients shortly.