Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamic Hyperlinks (URL) problem in Excel

OBJECTIVE
Trying to build an excel sheet with Shipments for the day from the
database. I am trying to include UPS tracking number as a HyperLink to the
UPS website.
I build the link and fill the colum using HYPERLINK function of excel

THE PROBLEM
Eg: This is a sample link i am trying to write to the colum from the database

=HYPERLINK("http://wwwapps.ups.com/tracking/tracking.cgi/?tracknum=1Z1516306601513843","Track Shipment")

What happens is when the data is loaded, Excel prefix a single quote (') to
the begining of the expression, hence the function doesnt work and the link
is not active
This how it shows up in excel

'=HYPERLINK("http://wwwapps.ups.com/tracking/tracking.cgi/?tracknum=1Z1516306601513843","Track Shipment")

I notice that excel does add sigle quote to all the character fields coming
from the database..
QUESTION
1) How can I suppress this single quote?
2) If it cannot be suppressed, how can i remove this after the the data is
loaded? Can i use a macro? ( i dont have much experience in this area). If
yes, how?
3) Or is there any alternate approach to get to the objective

Any help would be greatly appreciated.
(Sujith
ChestNut Ridge, NY)




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Dynamic Hyperlinks (URL) problem in Excel

Hi
how are you inserting this formula?
Also check that this cell is nOT formated as 'Text'

--
Regards
Frank Kabel
Frankfurt, Germany


Sujith Kumar wrote:
OBJECTIVE
Trying to build an excel sheet with Shipments for the day from the
database. I am trying to include UPS tracking number as a HyperLink
to the
UPS website.
I build the link and fill the colum using HYPERLINK function of excel

THE PROBLEM
Eg: This is a sample link i am trying to write to the colum from the
database


=HYPERLINK("http://wwwapps.ups.com/tracking/tracking.cgi/?tracknum=1Z15
16306601513843","Track
Shipment")

What happens is when the data is loaded, Excel prefix a single quote
(') to
the begining of the expression, hence the function doesnt work and
the link
is not active
This how it shows up in excel


'=HYPERLINK("http://wwwapps.ups.com/tracking/tracking.cgi/?tracknum=1Z1
516306601513843","Track
Shipment")

I notice that excel does add sigle quote to all the character fields
coming
from the database..
QUESTION
1) How can I suppress this single quote?
2) If it cannot be suppressed, how can i remove this after the the
data is
loaded? Can i use a macro? ( i dont have much experience in this
area). If
yes, how?
3) Or is there any alternate approach to get to the objective

Any help would be greatly appreciated.
(Sujith
ChestNut Ridge, NY)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Dynamic Hyperlinks (URL) problem in Excel

Hello Frank...
Excel sheet is created by a program (SQL DTS routine)
Presently this field is text. What esle i should use?
Thanks

"Frank Kabel" wrote:

Hi
how are you inserting this formula?
Also check that this cell is nOT formated as 'Text'


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Dynamic Hyperlinks (URL) problem in Excel

Hi
you have to set the format to 'General' before inserting your values

--
Regards
Frank Kabel
Frankfurt, Germany

"Sujith Kumar" schrieb im
Newsbeitrag ...
Hello Frank...
Excel sheet is created by a program (SQL DTS routine)
Presently this field is text. What esle i should use?
Thanks

"Frank Kabel" wrote:

Hi
how are you inserting this formula?
Also check that this cell is nOT formated as 'Text'



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Dynamic Hyperlinks (URL) problem in Excel

Frank,
I tried General as well still doesn work.
Issue is Excel somehow throws in the single quote in the begining ..
If i can find a way to stop excel from doing that i am good to go...
Any idea is appreciated

"Frank Kabel" wrote:

Hi
you have to set the format to 'General' before inserting your values

--
Regards
Frank Kabel
Frankfurt, Germany

"Sujith Kumar" schrieb im
Newsbeitrag ...
Hello Frank...
Excel sheet is created by a program (SQL DTS routine)
Presently this field is text. What esle i should use?
Thanks

"Frank Kabel" wrote:

Hi
how are you inserting this formula?
Also check that this cell is nOT formated as 'Text'






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
Dynamic Hyperlinks PJFry Excel Worksheet Functions 2 December 18th 08 09:06 PM
Dynamic hyperlinks Ray Excel Discussion (Misc queries) 0 August 21st 07 06:03 PM
Dynamic hyperlinks problem Mr.Plankton Excel Worksheet Functions 0 June 21st 06 03:20 PM
problem with Hyperlinks to XL Docs from within Excel Phil Excel Discussion (Misc queries) 0 June 2nd 05 03:29 PM


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