Consulting

Results 1 to 3 of 3

Thread: Hyperlink Error - Need Help!

  1. #1

    Hyperlink Error - Need Help!

    Hi,

    I am using following code to have hyperlink to a cell, but I am getting an error "An unexpected error has occurred".

    What can be wrong in this context even if we have the file path correctly entered?

    I had attached a sample file with the hyperlink code in sheet1. I need to generalize this code once it starts working.

    If possible, can anyone correct the code or let me know the steps to be followed in order to get this working.

    Thanks in advance...

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Works here fine. Perhaps a long shot but how about
    [vba]Address:= Chr(34) & Sheet1.Cells(1, 1).Value & Application.PathSeparator & Sheet1.Cells(1, 2).Value & Chr(34)[/vba]
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Regular mike31z's Avatar
    Joined
    Apr 2005
    Location
    Highland, Wisconsin
    Posts
    98
    Location

    hyperlink

    in cell c1 try "=hyperlink(A1,B1)


    Mike.

Posting Permissions

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