Syntax
PrevTab(Position)
Remarks
Returns the position of the next tab stop to the left of Position, in points, for the first paragraph in the selection.
Use the following list of conversions as an aid in converting from points to other measurements:
Example
This example displays a message box stating the position, in inches, of the last tab stop in the current paragraph. In the first instruction, PrevTab(8.5 * 72) returns the position of the last tab in points, given a page width of 8.5 inches and 72 points per inch. The value is divided by 72 to give the position in inches. The next three instructions prepare the number for display in a message box, with a maximum of two digits after the decimal point.
LastPos = PrevTab(8.5 * 72) / 72 LastPos$ = Str$(LastPos) dot = InStr(LastPos$, ".") LastPos$ = Left$(LastPos$, dot + 2) MsgBox "Position of last tab stop: " + LastPos$ + " inches"
See Also
FormatTabs, NextTab(), TabLeader$(), TabType()