Solved

How to edit a Hyperlink path in Excel?

Posted on 2015-02-23
8
56 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
Comment Utility
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
Comment Utility
NFP:

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

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

Expert Comment

by:Rob Henson
Comment Utility
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
 

Author Comment

by:Justincut
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 85

Expert Comment

by:Rory Archibald
Comment Utility
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
Comment Utility
If it's a date, then you yyyy\\dd-mmmm-yy
0
 

Author Comment

by:Justincut
Comment Utility
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
Comment Utility
Delete the ,"Open"

in other words, instead of:

=Hyperlink(myPath,"Open")

use

=Hyperlink(myPath)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
identifying alphanumerics in a column 6 17
Spell check software 2 26
Excel 6 13
File size limit in SharePoint 2010 3 12
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now