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:
OnutzaGirl 24 ani
Femeie
24 ani
Galati
cauta Barbat
24 - 51 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WORD] Hyperlink Current Paragraph to Top of the Document [VBA] Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 739
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
   
Pagini: 1  

Mergi la