dbTalk Databases Forums  

Converting text hyperlinks to MailTo Hyperlinks

comp.databases.ms-access comp.databases.ms-access


Discuss Converting text hyperlinks to MailTo Hyperlinks in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Duncan
 
Posts: n/a

Default Converting text hyperlinks to MailTo Hyperlinks - 12-01-2010 , 05:59 AM






I had data set up as MailTo hyperlinks. I broke up a large table into
three tables but discovered all the MailTo hyperlinks are now just web
address hyperlinks. Opening up Outlook by selecting the hyperlink is
very useful.
I found some vba code for an Excel macro that works well but am unsure
within Access 2003 what to do.
Sub test()
Dim mycell As Range
For Each mycell In
Columns("B").Cells.SpecialCells(xlCellTypeConstant s)
If mycell.Value Like "?*?*.?*" Then
ActiveSheet.Hyperlinks.Add Anchor:=mycell, _
Address:="mailto:" & mycell.Value, TextToDisplay:=mycell.Value
End If
Next
End Sub

Regards Ron de Bruin

Any suggestions?

Reply With Quote
  #2  
Old   
Duncan
 
Posts: n/a

Default Re: Converting text hyperlinks to MailTo Hyperlinks - 12-01-2010 , 07:04 AM






On Dec 1, 9:59*pm, Duncan <dunca... (AT) optusnet (DOT) com.au> wrote:
Quote:
I had data set up as MailTo hyperlinks. I broke up a large table into
three tables but discovered all the MailTo hyperlinks are now just web
address hyperlinks. Opening up Outlook by selecting the hyperlink is
very useful.
I found some vba code for an Excel macro that works well but am unsure
within Access 2003 what to do.
Sub test()
Dim mycell As Range
For Each mycell In
Columns("B").Cells.SpecialCells(xlCellTypeConstant s)
If mycell.Value Like "?*?*.?*" Then
ActiveSheet.Hyperlinks.Add Anchor:=mycell, _
Address:="mailto:" & mycell.Value, TextToDisplay:=mycell.Value
End If
Next
End Sub

Regards Ron de Bruin

Any suggestions?
***Sorry meant to say Ron de Bruin had written the code I found.
I copied all the email addresses into a spreadsheet and the macro did
its magic converting to mailto hyperlinks BUT when I copied it back
into the access table the mailto part was missing. Back to square one.
Duncan

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.