[dba-Tech] Another Word question -- VBA this time

Susan Harkins ssharkins at gmail.com
Thu Jul 2 15:56:43 CDT 2009


That was helpful -- I didn't actually find what I needed, but I did 
eventually find

Selection.Information(wdFirstCharacterLineNumber)


which returns Ln -- the line number. I checked the Object Browser and there 
doesn't seem to be an At equivalent in the Information properties or else 
I'm just missing it, which is possible. I wouldn't have thought 
FirstCharacterLineNumber would return the current line number -- don't 
understand the FirstCharacter component of that one.

Susan H.


> http://www.bigresource.com/VB-vba-Current-Line-in-MS-Word-6YSha8fl.html
>
> http://www.bigresource.com/VB-Getting-Word-line-number-with-VBA-fQan3WAd1t.h
> tml
>
> http://www.astahost.com/info.php/Finding-Current-Line-Number-Text-Box_t9895.
> html
>
> tons more
>
> Anyone know the VBA property for returning the current line position and
> number: the equivalents displayed by the At and Ln indicators in the 
> status
> bar? Not finding it in Word's VBA Help files -- it might be there, just 
> not
> getting the search string right I guess.




More information about the dba-Tech mailing list