Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

seems to be simply syntax problem

Status
Not open for further replies.

cisco777

Programmer
Jul 22, 2005
13
US
I am making progress on writing the excel file and I want to thank everyone for their help.

I am trying to make the email address clickable when writing the excel file but can not seem to get by the syntax.

everything works except the email line.

The below is the code.


bxtract.WriteLine("<tr>")
bxtract.WriteLine("<td width=""20%"" valign=""top"">" & strFname & "</td>")
bxtract.WriteLine("<td width=""20%"" valign=""top"">" & strLname & "</td>")
bxtract.WriteLine("<td width=""20%"" valign=""top"">" & "<a href=""' & " & mailto: <%=strEmail%> & """> strEmail</a>" & "</td>")
bxtract.WriteLine("</tr>")


Thank you.
 
are you trying to do this in an asp page? <%=strEmail%>

perhaps get rid of the asp code (since strEmail is a variable) and concatenate the string and variables correctly

Code:
bxtract.WriteLine("<td width=""20%"" valign=""top""><a href=""mailto:" & strEmail & """>" & strEmail & "</a></td>")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top