Solved

How to edit a Hyperlink path in Excel?

Posted on 2015-02-23
8
62 Views
Last Modified: 2016-02-11
Hi, I have this Hyperlink path "\\dfs.uk.ml.com\London\FinanceShared\Finance\EMEA Mortgages\2015\01-January 2015\PVG\Reporting\1 - PV Month End Reporting Pack.xlsx" in Excel . The Folder "01-January 2015" changes every month so how can I edit it so it automatically changes Month on an Excel Spreadsheet ? I can do it with a Formula eg. Format(Now,"DD MM YYYY") but not a hyperlink
0
Comment
Question by:Justincut
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40625516
You can use a formula hyperlink instead, and you can generate the path using a formula.
 
=Hyperlink(PathStart & Format(Now,"DD MM YYYY") & PathEnd,"Open")
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40625522
NFP:

You'll want the TEXT function rather than Format, which is VBA, though.

TEXT(TODAY(),"dd mm yyyy")
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40625531
Looks like you will also need to formulate the Year folder part as well:

TEXT(TODAY,"yyyy")

Also rather than using TODAY() it might be worth having a fixed date somewhere in your sheet and refer to that instead.

Otherwise, as soon as the new month occurs the calculations will change and you may not have saved to a new file by that time.

Thanks
Rob H
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:Justincut
ID: 40625544
Hi Rob, if I use a Fixed date in Cell A1 of "01-Jan-15" and my path is this: \\dfs.uk.ml.com\London\FinanceShared\Finance\EMEA Mortgages\2015\01-January 2015\PVG\Reporting\1 - PV Month End Reporting Pack.xlsx


What would be the full formula for the Hyperlink?
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40625557
As Phillip indicated earlier, it would be:

=HYPERLINK("\\dfs.uk.ml.com\London\FinanceShared\Finance\EMEA Mortgages\"&TEXT(A1,"yyyy\\mm-mmmm-yy")&"\PVG\Reporting\1 - PV Month End Reporting Pack.xlsx","text to display")

I've assumed that the 01 in 01 January is a month number, not a day.
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40625568
If it's a date, then you yyyy\\dd-mmmm-yy
0
 

Author Comment

by:Justincut
ID: 40625577
It works. Cheers! However, is there a way I can see the full path so colleagues can see it changing from Jan to Feb? Just like when you insert a Hyperlink within Excel but with a visible variable.
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40625579
Delete the ,"Open"

in other words, instead of:

=Hyperlink(myPath,"Open")

use

=Hyperlink(myPath)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question