+ Reply to Thread
Results 1 to 2 of 2

hyperlinks

Hybrid View

Guest hyperlinks 01-28-2005, 10:06 AM
Guest Re: hyperlinks 01-28-2005, 10:06 PM
  1. #1
    john.9.williams@bt.com
    Guest

    hyperlinks

    Hi,

    I have code that inserts a hyperlink within a cell, then selects it,
    but can I just insert the hyperlink within vba so the code just selects
    the link,

    my code at the moment is

    Sheets("codes").Select
    process = Range("b1")
    Range("c1").Select
    ActiveSheet.Hyperlinks.Add Anchor:=Selection,
    Address:="outlook://Public Folders/All Public Folders/BT
    plc/Networks/Network Build/Processes/eTASK Enabled Processes/~" &
    process & ".doc"

    Range("c1").Select
    Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True


    As you can see i insert the link into cell c1 then select it, its this
    bit i want to remove, any help would be great

    Johny


  2. #2
    Dave Peterson
    Guest

    Re: hyperlinks

    Take a look at .followhyperlink in VBA's help:

    ThisWorkbook.FollowHyperlink "http://www.microsoft.com"



    john.9.williams@bt.com wrote:
    >
    > Hi,
    >
    > I have code that inserts a hyperlink within a cell, then selects it,
    > but can I just insert the hyperlink within vba so the code just selects
    > the link,
    >
    > my code at the moment is
    >
    > Sheets("codes").Select
    > process = Range("b1")
    > Range("c1").Select
    > ActiveSheet.Hyperlinks.Add Anchor:=Selection,
    > Address:="outlook://Public Folders/All Public Folders/BT
    > plc/Networks/Network Build/Processes/eTASK Enabled Processes/~" &
    > process & ".doc"
    >
    > Range("c1").Select
    > Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
    >
    > As you can see i insert the link into cell c1 then select it, its this
    > bit i want to remove, any help would be great
    >
    > Johny


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1