Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Marco & hyperlink

While writing a macro i found a problem which I can't solve.
On the worksheet is a hyperlink containing a datevalue, this has to change
on a dailybase but while writing the macro it writes down the date in the
macro and it won't change the next time i use the macro.
Does any one know how to solve this problem.

Thanks Gerard
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Marco & hyperlink

Here is one approach:

If the hyperlink is on a worksheet (say cell A1) then:

Function hyp2(r As Range) As String
hyp2 = r.Hyperlinks(1).Address
End Function


will get you the URl portion (a string). Use REPLACE() to update the date
within the URL and then re-construct the hyperlink with the new URL
--
Gary''s Student


"gerard D" wrote:

While writing a macro i found a problem which I can't solve.
On the worksheet is a hyperlink containing a datevalue, this has to change
on a dailybase but while writing the macro it writes down the date in the
macro and it won't change the next time i use the macro.
Does any one know how to solve this problem.

Thanks Gerard

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
Marco Puzzled Excel Discussion (Misc queries) 3 July 30th 07 05:09 PM
Marco Help looper Excel Discussion (Misc queries) 2 May 12th 07 06:55 PM
I need some help with a Marco xgunda420x Excel Discussion (Misc queries) 2 August 2nd 05 01:43 PM
Can it be done by marco? kaon[_5_] Excel Programming 1 June 28th 04 10:56 AM
marco David Kuehl Excel Programming 4 September 18th 03 11:37 PM


All times are GMT +1. The time now is 12:37 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"