+ Reply to Thread
Results 1 to 12 of 12

Auto hyperlink

  1. #1
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Auto hyperlink

    Hi,
    I have a series of data in Column C and Column H.
    Also I have individual worksheets based on the datas named in Column C and H.

    I want to have a button with name Generate. and when clicked it will automatically create a hyperlink based on the datas available in column C and Column H to Column Q and Column T.
    That is when I click the link it will take me to that sheet.
    I have highted the place in red where the hyperlink to be generated.

    I am attaching a dummy sheet for reference.
    Thanks in advance,
    me.
    Attached Files Attached Files
    Last edited by fatalcore; 08-28-2011 at 08:26 AM.

  2. #2
    Registered User
    Join Date
    05-19-2010
    Location
    Ourem, Portugal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Auto hyperlink

    Hi,

    Let me see if i undesrtand:

    You are in Sheet1

    You have cell "Q21" selected.

    You click the Generate button.

    Sheet "ABC" is activated.

    Or if cell "Q23" is selected and click Generate button, sheet "MNO" is activated.

    Is that what you need?

  3. #3
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Auto hyperlink

    No, What I want it,
    Once I click the generate button hyperlinks in cells q21 is generated with cell C 21's data.and hyperlink in cell T21 is generated with H21's data automatically

    And the chain continues like that till upto cell Q200 and T200 automatically.

    If the data cell is blank then no link is generated.

    then when i click the links newly created in q21 the sheet opens.

    In a nutshell I will fill the data in column A to I then hit the generate button and the links are created automatically.
    Last edited by fatalcore; 08-27-2011 at 03:08 PM.

  4. #4
    Registered User
    Join Date
    05-19-2010
    Location
    Ourem, Portugal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Auto hyperlink

    Ok,

    This code will create the hyperlinks.

    You will have to select any cell on the row were you want create the hyperlink.

    It only creates an hyperlink per click.

    Place the code on the Button code

    Please Login or Register  to view this content.
    Let me know if its working or what improvements does it needs

    Nuno Lopes

  5. #5
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Auto hyperlink

    Hi,
    Thanks for the code, but can you kindly modify the code a bit so that I dont have to click it every time after I enter a data.

    I mean I click once and the links are created upto Q200 and T200.

    It will also be great if I can have another button when clicked, that will clear the cells Q21 to Q200 and T21 to T200.

    Thanks in advance.
    me.

  6. #6
    Registered User
    Join Date
    05-19-2010
    Location
    Ourem, Portugal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Auto hyperlink

    Hi,

    I think that's ok now.

    It will create all the hyperlinks

    Place it on the Button code


    Please Login or Register  to view this content.

    This one will delete all the hypelinks.

    Add a new button and place the code.


    Please Login or Register  to view this content.
    Let me know if it's everything ok

  7. #7
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Auto hyperlink

    Hi Nlex,
    There is a small problem .

    it the data are like "S 12" or say "Scope A" the links are not working.
    I mean if there is a space. the links are not working.

    Can ypu please take a look at it. Clear button is perfect. No problem with that.
    Thanks in advance.

  8. #8
    Registered User
    Join Date
    05-19-2010
    Location
    Ourem, Portugal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Auto hyperlink

    Hi,

    Do you really need to have the hyperlinks or you just want a way to "navigate" throug the sheets in the workbook?

  9. #9
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Auto hyperlink

    Hi Nlex,
    my main purpose is to jump to that sheet and paste the datas calculated in column O, P,R, S .
    Now i have around 180 sheets with unique names.One for evey individual name.

    now these names are defined column C and H. and some calculations are performed on column O,P,R,S.

    So I need a link on Column Q and Column T, So that I can jump to that page. and paste the values.

    That's all.

  10. #10
    Registered User
    Join Date
    05-19-2010
    Location
    Ourem, Portugal
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Auto hyperlink

    Ok,

    I already had a similar problem.

    I've solved it without the hyperlinks

    I just select the cell that has the name of the sheet where i want to go and then click a button that has the following:

    Please Login or Register  to view this content.
    Two lines of code, the "same" result

    Tell me if that is ok for you.

  11. #11
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Auto hyperlink

    the code is fine...but this is not what i require.
    As such yes i need the hyperlinks.
    thanks in advance.
    me

    Hi Nlex,
    I was just trying to manually see what happens when you link the sheets manually and found that whenever there is a space in the data to be hyperlink there is a ' and ' (Single quote) in the names.

    I am uploading a image for quick reference. I was thinking that if somehow these quote can be added in the code then it might work....Just guessing..

    Thanks in advance,
    me.
    Attached Images Attached Images
    Last edited by fatalcore; 08-28-2011 at 08:14 AM. Reason: Found something

  12. #12
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Auto hyperlink

    Hi Nlex,

    I have modified the code you have posted and it worked like a charm.


    Please Login or Register  to view this content.
    ALL THE CREDIT GOES TO YOU.

    THANKS A TON.
    I guess this post will help lot's of people.
    Thanks Nlex for everything [:D]
    I am marking this a solved.

+ 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