Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Numbering / August 2004

Tip: Looking for answers? Try searching our database.

Line Numbering (Cannot GoTo!?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeffrey A. Voigt - 30 Jul 2004 19:23 GMT
I'm trying to programmatically go to a specific line (without running
through the entire document a line at a time).  I know you can use the Goto
command to a specific line, but it's not doing what I want it to do.
Example, if you setup word to display the line number next to each line
there are problems when you have tables and other objects throughout the
document.  The tables are not numbered with a line number (which is fine).
So what you might end up with is something like the following:

1    Text fkjsa fjksajkfs
2    Text kjfsajkfdkjsadf
   <Table> Row 1
   <End Table> Row 2
3    Text jfkdsafjksafjks
4    Text fkjdsfjks

Now I want to be able to tell Word to goto Line # 4.  Line # 4 which is
(Text fk..), but rather Word goes to the line starting with <End Table>....

Is it possible to have to have Word quickly navigate to the line # 4 without
having to find it line by line?

Thanks
- J
Word Heretic - 01 Aug 2004 05:49 GMT
G'day "Jeffrey A. Voigt" <voigt.jeffrey@myfloridahouse.com>,

Tip1: Goto works with the selection only

Tip2: What is the characteristic of your target line? That's what we
need to tell you how to find it :-)

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)

Jeffrey A. Voigt reckoned:

>I'm trying to programmatically go to a specific line (without running
>through the entire document a line at a time).  I know you can use the Goto
[quoted text clipped - 19 lines]
>Thanks
>- J
Jeffrey A. Voigt - 02 Aug 2004 14:22 GMT
OK.  Basically we have an app where we are adding a new word button to do
the following.

User Enters in Starting Line # and Ending Line #.  The app must highlight
the lines request.  I.E: User Inputs 9 & 20.  The app must highlight lines 9
through 20.  However, the lines that should be highlights are the the lines
with 9 (on the left side) through 20 (on the left side).  This does not work
since tables and a few other objects are now line numbered and the selection
object (I thought) will go to the direct line (with no relation to the line
numbers printed, rather only the number of lines to move down from the
beginning of the page).

Please let me know if there is something I'm overlooking!

Thanks,
- JV

> G'day "Jeffrey A. Voigt" <voigt.jeffrey@myfloridahouse.com>,
>
[quoted text clipped - 33 lines]
> >Thanks
> >- J
Word Heretic - 05 Aug 2004 21:04 GMT
G'day "Jeffrey A. Voigt" <voigt.jeffrey@myfloridahouse.com>,

If each line is its own paragraph, you could count down each para,
test the Selection.Information for being in a table and if so ignore
it.

If it is truly line based, and not para based, it gets a lot trickier.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)

Jeffrey A. Voigt reckoned:

>OK.  Basically we have an app where we are adding a new word button to do
>the following.
[quoted text clipped - 54 lines]
>> >Thanks
>> >- J
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.