+ Reply to Thread
Results 1 to 10 of 10

Create hyperlink

  1. #1
    Registered User
    Join Date
    12-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Create hyperlink

    Hi All,

    I would like your help in creating a hyperlink in a sheet, pointing from the selected cell in sheet3 to a different cell in the other sheet(sheet1 or sheet2).

    The user is supposed to select a cell, and activate the macro.
    The macro should then create a hyperlink to this cell.

    The cell will usually contain a textdata, and the target cell will usually contain same textdata, but in other sheet(sheet1 or sheet2).



    In this sheet when we open the data sheet you will find a column named Feild, In the feild column when we click on any text data in a cell it should automatically redirect us to the other sheet of the column where the exact text data is present.

    Your help will be highly appreciated.
    Attached Files Attached Files
    Last edited by davesexcel; 09-05-2010 at 02:09 PM.

  2. #2
    Registered User
    Join Date
    12-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to create a hyperlink in a excel sheet

    Davesexcel,

    can you please help me?

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: How to create a hyperlink in a excel sheet

    Select a cell in Column E Sheet 3, it will search the other sheets to find that value.
    What to do if value is not found, Anybody?
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to create a hyperlink in a excel sheet

    DavesExcel . . .

    To answer your question, give a msgbox that says "Values are not equal" and then return to same cell on 1st page when OK clicked on msgbox.

    For the code, the selected cell has a location. Write a macro that checks the location of the cell on the 1st sheet and then moves to the second sheet and goes to that location and compares.

    If the value of the cell in sheet 2 is not equal use msgbox.

    If equal, select cell. Stop.

    Place a box or image or whatever that you can link a macro to.

    In making a button, I like to use a text box. First, type into the cell you choose a word that represents what the macro is going to do. Then, use a light colored fill in the cell. Set the text font of the cell so the word is easily read. Next, use the text box drawer and then place the text box over the cell where the word is typed in. Adjust the size of the text box to the size of the cell. Use no fill in the text box and you can then see the word in the cell.

    Now write your code in a module and link the text box to the macro code.

    Then, select one row under the so called button and freeze pane. This will keep the button always visible regardless of how far down the sheet the operator is. If the data can not all be seen on one screen, meaning to the right, copy and paste the button into another cell to the right where it will be dispayed if the operator scrolls to the right and the first button is not visible.

    You may also want a button that returns the selection to cell A1 when clicked. The macro for returning to A1 is 3 lines of code. First, select column A and cell right below freeze pane line. Second select column A and cell right above freeze pane line. And 3rd, select cell A1. This is necessary if there are several rows above the Freeze pane row. If you don't do this, the selection of cell A1 will only go to column A and the 1st row below the freeze pane row.

    Sorry that I don't have time to write the code. First, more info is needed. Dave, I hope you have time to help him.

    Have A Happy Excel Merry Christmas Guys. God Bless !
    Thanks for helping . . .
    Matt @ Launchnet

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: How to create a hyperlink in a excel sheet

    What the heck was that all about?

  6. #6
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to create a hyperlink in a excel sheet

    Just an idea on how I think that rajesh2009 's problem can be solved. Nothing more than showing how 1 button at the top of the work sheet can read the selected cell and do what he needs.

    Sorry if it was confusing. If you have specific questions on my suggestion I will reply.

    Merry Christmas

  7. #7
    Registered User
    Join Date
    12-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to create a hyperlink in a excel sheet

    Thanks Dave.. It was working good. You saved my safe..

    One more change is needed

    If the value is not found on the other sheets(sheet1 or sheet2) it should display a message "it is not found in sheet1 or sheet2".

    I am attaching the excel sheet.

    Once again thanks for spending the time..
    Attached Files Attached Files

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: How to create a hyperlink in a excel sheet

    This is the only solution I could find, it works for the sample you provided.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to create a hyperlink in a excel sheet

    Thanks for spending your time on posting the solution.

    The above code is not working..

    I am attaching an excel sheet, In the excel sheet in sheet3 we have a column E, In this column when we click on the cell E14 it should display a message "it is not found in sheet1 or sheet2", Because the text data is not present on the other sheets.
    Attached Files Attached Files

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: How to create a hyperlink in a excel sheet

    I believe I got it.

    Please Login or Register  to view this content.

+ 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