Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Retrieving hyperlink from MS Access database

Hi!

I have problem to retrieve hyperlinks from MS Access database to Excel
worksheet (ADO). everytime when a hyperlink is retrieved to the worksheet it
is wrapped with # from both sides for eg: #http:\www.cnn.com# and the link is
not working.

any suggestions?

Thanks in advance for your help!

regards
E
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Retrieving hyperlink from MS Access database

I don't know how to prevent this, but I do know how to fix your "im-pounded"
hyperlinks. Select the cells and run:

Sub hyper_fixer()
For Each r In Selection
r.Value = Mid(r.Value, 2, Len(r.Value) - 2)
r.Select
Application.SendKeys "{F2}"
Application.SendKeys "{ENTER}"
DoEvents
Next
End Sub

This sub removes the leading and trailing pound from each cell and then does
F2 to the cell to make the hyperlink "hot"
--
Gary''s Student - gsnu200752


"אלי" wrote:

Hi!

I have problem to retrieve hyperlinks from MS Access database to Excel
worksheet (ADO). everytime when a hyperlink is retrieved to the worksheet it
is wrapped with # from both sides for eg: #http:\www.cnn.com# and the link is
not working.

any suggestions?

Thanks in advance for your help!

regards
E

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Retrieving hyperlink from MS Access database

Thanks!

Eli

"Gary''s Student" wrote:

I don't know how to prevent this, but I do know how to fix your "im-pounded"
hyperlinks. Select the cells and run:

Sub hyper_fixer()
For Each r In Selection
r.Value = Mid(r.Value, 2, Len(r.Value) - 2)
r.Select
Application.SendKeys "{F2}"
Application.SendKeys "{ENTER}"
DoEvents
Next
End Sub

This sub removes the leading and trailing pound from each cell and then does
F2 to the cell to make the hyperlink "hot"
--
Gary''s Student - gsnu200752


"אלי" wrote:

Hi!

I have problem to retrieve hyperlinks from MS Access database to Excel
worksheet (ADO). everytime when a hyperlink is retrieved to the worksheet it
is wrapped with # from both sides for eg: #http:\www.cnn.com# and the link is
not working.

any suggestions?

Thanks in advance for your help!

regards
E

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
Creating a Product DATABASE in ACCESS or EXCEL and then retrieving Abe Excel Discussion (Misc queries) 1 February 25th 06 03:09 AM
Retrieving Excel Database Data Brian C Excel Programming 5 February 24th 06 10:55 PM
Importing Data from an Access Database Including a Hyperlink Colum B.C.Lioness Excel Discussion (Misc queries) 0 May 16th 05 05:26 PM
Need to keep text format when retrieving records from database Markantesp Excel Programming 1 March 7th 05 02:43 AM
Retrieving data from a database list RestlessAde Excel Discussion (Misc queries) 2 February 22nd 05 09:15 PM


All times are GMT +1. The time now is 03:19 AM.

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

About Us

"It's about Microsoft Excel"