Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Lista Forumurilor Pe Tematici
|
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login
POZE MRRRR'S FORUM (VIEW ONLY)
Nu sunteti logat.
|
Nou pe simpatie: LaraTaner la Simpatie.ro
| Femeie 19 ani Prahova cauta Barbat 24 - 52 ani |
|
TRaP
Moderator
Inregistrat: acum 6 ani
Postari: 787
|
|
The following snippet will hyperlink the current paragraph (where the cursor is) to the top of the document:
Sub HLNK_Top() Dim rng As Range Set rng = Selection.Paragraphs(1).Range rng.SetRange rng.Start, rng.End - 1 ActiveDocument.Hyperlinks.Add Anchor:=rng, Address:="", _ SubAddress:="_top", ScreenTip:="", TextToDisplay:=rng.Text End Sub |
If you have many paragraphs to add this hyperlink to, simply put the macro as a button in your Quick Access Toolbar, like 1st from the left, then pressing ALT+1 will automatically run the macro.
|
|
pus acum 1 an |
|