+ Reply to Thread
Results 1 to 3 of 3

Pass down parameter from Web

  1. #1
    Registered User
    Join Date
    03-07-2006
    Posts
    19

    Unhappy Pass down parameter from Web

    Hi i need help on this problem.

    I got an excel spreadsheet with textbox to let user input text.
    However, i need to enhance it in such a way that when the website link is clicked (e.g http://www.web.com/data.jsp?do=12345)
    The parameter do(12345) will be automatically transfer to the textbox of the excel spreadsheet.

    Can anyone help me on this?
    Thank you

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388
    One way, using the FollowHyperlink event of the worksheet:

    Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)

    If InStr(Target.Address, "?do=") Then
    TextBox1.Text = "do(" & Right(Target.Address, Len(Target.Address) - InStrRev(Target.Address, "=")) & ")"
    End If

    End Sub


    hth

  3. #3
    Registered User
    Join Date
    03-07-2006
    Posts
    19

    Question followhyperlink only work within excel

    HI
    Thank for your respond. However i faced another dilemmas.
    I know the solution provide by you can only work within excel.


    But how do i make it in such a way that i can pass down the parameter from the internet explorer.

    For example when i click the link from the website(open at Internet Explorer), it will open up the excel and fill in the parameter into the excel textbox.


+ 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