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

I got a image on a userform. what will the code behide it be to hyperlink
mailto?

this dont work but more or less what i need...

================================================== ======================
Private Sub Image1_Click()

subject: suport needed
End Sub
================================================== ======================

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default hyperlink image for email

You don't need to use code to create an email, right-click the image
and use the Hyperlink option.

Cliff Edwards

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default hyperlink image for email

i tried that but there is no such option on the right click menu


"ward376" wrote in message
...
You don't need to use code to create an email, right-click the image
and use the Hyperlink option.

Cliff Edwards


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default hyperlink image for email

Sorry, I overlooked that your image was on a form. John Walkenbach has
an example of adding a hyperlink to a form; I would think you coud
adapt it to an image on a userform.

http://www.j-walk.com/SS/excel/tips/tip71.htm

Cliff Edwards
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default hyperlink image for email

Yep, it works:

Private Sub Image1_Click()
Dim link As String
link = "
On Error GoTo NoCanDo
ThisWorkbook.FollowHyperlink Address:=link, NewWindow:=True
Unload UserForm1
Exit Sub
NoCanDo:
MsgBox "Cannot open " & link
End Sub

Cliff Edwards
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
Hyperlink from an image chriswilko Excel Discussion (Misc queries) 3 May 29th 09 11:16 AM
Hyperlink in Excel to an image SueJ Excel Discussion (Misc queries) 2 July 18th 08 08:11 AM
Excel To Display image from the Hyperlink Julie Excel Discussion (Misc queries) 0 July 11th 07 08:00 PM
How to hyperlink to an image on a different sheet and display it f twilliams New Users to Excel 1 February 10th 06 03:11 AM
Hyperlink to an image in other worksheet, displaying entire image. twilliams Excel Worksheet Functions 0 February 7th 06 10:02 PM


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