Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default multiple Hyperlink address change

I'm trying to create a macro which will simply take a changed hyperlink
address (i.e. "C:\Documents and Settings\XXXX\yyy.doc") and populate an
existing hyperlink in excel. The hyperlink is in one column and the hyperlink
address is in the adjacent column. I tryed to make a macro which would copy
the address contents (CTRL+C) and then select the adjacent hyperlink, select
"edit hyperlink" and then paste (CTRL+V) into the edit hyperlink window.
I have 2 columns of about 50 or so hyperlinks and corresponding addresses.
The links currently reflect the corresponding addresses and I wanted to
cretae a macro so that if the drive or folder cahnges I could do it more
automatically to each hyperlink.
When I record a macro now it just uses the specific example on each link, I
want it to copy the address for the cell it is in and paste it into the
hyperlink address window independently. I tried using the "Relative cell"
button but that does not seem to make a difference.
The other solution that I wanted to try is to use the "find/replace"
function on the hyperlinks but I guess it wont look at the hyperlink address,
only the displayed hyperlink text. (this woul dbe the easiest method if
someone knew how to have the "find/replace" function work on hyperlinks.
Thanks,
Jim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default multiple Hyperlink address change

If you have the filenames in one column, how about an alternative:

I'd put the drive and folder in an out of the way cell (or hide that
column/row):

Say your filename data is in A2:Axx
Put this in A1:
C:\documents and settings\xxxx\
and hide row 1.

Then in B2, put this:
=hyperlink("file:////" & $a$1 & a2,"Click Me")
and drag down the column.

When/if the drive or folder changes, just change $A$1 to point at the new
location.



jea3 wrote:

I'm trying to create a macro which will simply take a changed hyperlink
address (i.e. "C:\Documents and Settings\XXXX\yyy.doc") and populate an
existing hyperlink in excel. The hyperlink is in one column and the hyperlink
address is in the adjacent column. I tryed to make a macro which would copy
the address contents (CTRL+C) and then select the adjacent hyperlink, select
"edit hyperlink" and then paste (CTRL+V) into the edit hyperlink window.
I have 2 columns of about 50 or so hyperlinks and corresponding addresses.
The links currently reflect the corresponding addresses and I wanted to
cretae a macro so that if the drive or folder cahnges I could do it more
automatically to each hyperlink.
When I record a macro now it just uses the specific example on each link, I
want it to copy the address for the cell it is in and paste it into the
hyperlink address window independently. I tried using the "Relative cell"
button but that does not seem to make a difference.
The other solution that I wanted to try is to use the "find/replace"
function on the hyperlinks but I guess it wont look at the hyperlink address,
only the displayed hyperlink text. (this woul dbe the easiest method if
someone knew how to have the "find/replace" function work on hyperlinks.
Thanks,
Jim


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default multiple Hyperlink address change

Here is a trick, use the HYPERLINK() function:

if the address is in A1, then in B1 enter:
=HYPERLINK(A1) and copy down


clearly Find/Replace will work on the text in column A and column B will
follow suite.
--
Gary''s Student
gsnu200711

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hyperlink a worksheet with no address Jared Excel Worksheet Functions 2 August 14th 06 02:16 PM
Moving rows with Hyperlink doesn't move hyperlink address Samad Excel Discussion (Misc queries) 15 June 22nd 06 12:03 PM
How to get 500 hyperlink address efficiently? liru Excel Discussion (Misc queries) 4 May 16th 06 03:56 AM
Hyperlink change address LDBlanes Excel Discussion (Misc queries) 1 February 3rd 06 11:30 AM
email address hyperlink Ulti Excel Worksheet Functions 1 March 1st 05 03:18 AM


All times are GMT +1. The time now is 07:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"