Results 1 to 3 of 3

Dynamic Hyperlink

Threaded View

  1. #1
    Registered User
    Join Date
    02-17-2008
    Posts
    70

    Dynamic Hyperlink

    Hi All,

    I just want to make Subaddress for the below hyperlink code to be dynamic ie call input value from variant.
        ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
            "FWC!A1", TextToDisplay:="Back"
    .

    Instead of FWC,i want to call it from the below variant. ie replace FWC with SheetName
    Dim SheetName As String
    SheetName = ActiveSheet.Name
    Instead of A1, i want to call it from the below variant. ie replace A1 with CelAddres
    Dim CelAddres As String
    CelAddres = ActiveCell.Address
    Both the Variant SheetName and CelAddres are stored in while the macro is running in another sheet in same workbook.

    Thanks in advance for your help.

    Regards,

    Nazim
    Last edited by nazimscr; 03-21-2011 at 05:50 AM.

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