Susan Harkins
ssharkins at gmail.com
Thu Jul 2 17:05:36 CDT 2009
Success!!! Debug.Print Selection.Information(wdFirstCharacterLineNumber) Debug.Print Selection.Information(wdVerticalPositionRelativeToPage) / 72 Thanks Max! I had to wade through a lot to find what I needed, but eventually, I did. :) Susan H. > http://www.jerrypournelle.com/savestuff/linecount.html > > > http://www.eggheadcafe.com/forumarchives/wordVisualBasicageneral/Jan2006/pos > t25503367.asp > note - this talks about switching views, which may affect what objects > become available > > > > http://www.wiredbox.net/Forum/Thread111578_Finding_the_current_line_and_colu > mn_location_of_the_cursor.aspx > > > > Max > > > > -----Original Message----- > From: dba-tech-bounces at databaseadvisors.com > [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 02 July 2009 21:57 > To: Discussion of Hardware and Software issues > Subject: Re: [dba-Tech] Another Word question -- VBA this time > > 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. > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com