Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email address in excel
Message
 
 
To
10/08/2007 11:27:37
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01247406
Message ID:
01247411
Views:
20
>I am creating a spreadsheet with emails in column 'H'
>when I look at the sheet entries in column 'H' are looking normal
>one I double click the cell in 'H' the email address in it turns into a mailto: type of hyperlink.
>
>How can I create this effect in my program
>oExcel.????
>
>
>Thansk
>
>
>Peter

Check http://www.tek-tips.com/viewthread.cfm?qid=1319252

From someone's answer - not tested yet:
oXL = CREATEOBJECT("excel.application")
WITH oXL
  .Workbooks.Add()

  WITH .activesheet
    .range("B2").Hyperlinks.Add(.range("B2"), "http://www.tek-tips.com/index.cfm")
    .range("B2").Hyperlinks(1).TextToDisplay = "Tek-Tips Home"
    .range("B:B").EntireColumn.Autofit
  ENDWITH 
  
  .visible=.t.
ENDWITH
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform