+ Reply to Thread
Results 1 to 7 of 7

Basic Hyperlinking

  1. #1
    Registered User
    Join Date
    02-24-2009
    Location
    Seatttle, USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Basic Hyperlinking

    Hi everyone.

    Just can't seem to get the code quite right even when copying from Excel's Help window. Can someone correct this code for me?

    Please Login or Register  to view this content.
    I get an error message that says:

    Compile error:
    Expected: line number or label or statement or end of statement


    Thanks,
    Z
    Last edited by Zathrus; 03-13-2009 at 04:35 PM.

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Basic Hyperlinking

    If you re trying to use the HYPERLINK function in excel the correct coding would be

    Please Login or Register  to view this content.

    Please note, there is no need to select the cell (Range("A01").Select in your code) in order to enter the formula in VBA.

  3. #3
    Registered User
    Join Date
    02-24-2009
    Location
    Seatttle, USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Basic Hyperlinking

    I don't think I need the function...

    I just need the simplest way to create a hyperlink from my current cell using a Macro.

  4. #4
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Basic Hyperlinking

    Try this one:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-24-2009
    Location
    Seatttle, USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Basic Hyperlinking

    That's Much better.

    But how would I do this just referencing the ActiveCell?

  6. #6
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Basic Hyperlinking

    Change the "Range("A1")"s to ActiveCell and you should be good to go.

  7. #7
    Registered User
    Join Date
    02-24-2009
    Location
    Seatttle, USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Basic Hyperlinking

    Ok, that worked just fine.

    Many Thanks.
    Last edited by Zathrus; 03-13-2009 at 04:34 PM.

+ 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