Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WORD MACRO

Status
Not open for further replies.

cetosun

Technical User
Joined
Dec 24, 2004
Messages
3
Location
TR
HELP NEEDED
?'m writing a macro in Ms word.
in program the code prepares some texts but ? couldt ,find a code.
i want to learn the place (number) of the last row in the document. what is the code of it.
thanks
 
Last "row" of the document? Do you mean last line? Could you give more details as to what you are trying to do?

Gerry
 
yes last line=row
what can ? do??
 
A starting point:
Selection.GoTo What:=wdGoToLine, Which:=wdGoToLast

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I guess you need to find out how to access the code itself at all, right?
Either
go to Tools->Macros->Macro
Select your Macro and click "Edit"
or
Hit Alt+F11. This opens the VB-Editor. On the left pane, expand "Normal", then "Moduls". Doubleclick on Module1.

;-)

Cheers,
Andy

[blue]An eye for an eye only leaves the whole world blind. - "Mahatma" Mohandas K. Gandhi[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top