Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default HYPERLINK URL PROBLEM (Excel2000 VS Excel2002)

A macro in Excel has the following code to create a hyperlink.

Range("A" & Row).Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"\\S10AC52B\Eng\SCN\" & SCNFile, TextToDisplay:= _
"" & SCNNumber
where the variable SCNFile is the name of the workbook like "MyBook.xls"
and SCNNumber looks like "MyBook".

The code works fine when ran in Excel 2000 and gives a valid hyperlink
address of \\S10AC52B\Eng\SCN\MyBook.xls

BUT when ran in a version of Excel 2002 the link has the address of
"..\..\Eng\SCN\MyBook.xls" which of course does not exist.

Anyone have an idea of how or why Excel changed the link address? Or how to
correct it programmatically?

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
excel2002 JWD Setting up and Configuration of Excel 0 November 9th 09 03:55 PM
Excel2000/2002 migration problem anubhav78 Excel Discussion (Misc queries) 0 June 28th 05 11:47 AM
Problem with calling Excel2000 addin in ExcelXP wojtek Excel Programming 0 November 8th 04 11:39 PM
Excel2000 VB Help Problem! skc[_2_] Excel Programming 0 July 9th 03 11:08 AM


All times are GMT +1. The time now is 01:41 PM.

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"