Hello, wondering if someone could point me in the right direction. I need to pull over data on an excel spreadsheet
to a HTML page. That part all works and looks fine. The one little wrinkle I have is that one column in the
spreadsheet are hyperlinks. The names come across to the HTML but not the links, I need these links to come across.
Is there a way to accomplish this?
I have a spreadsheet with 5 coliumns. Each column is in a "range". I am using this code to pull from my cell range:
RS.open "SELECT * FROM my_range", oConn
A "Responce.Write" command writes the data from each column to the html formatted web page. However, the 5th column,
which are hyperlinks on the spreadsheet justs pulls over the text of the cells, not the text with the hyperlinks.
Any help would be great!
This is the code I am using where "Signatures" is the column with the hyperlinks. The text of the hyperlink names from each cell, just not the links.
RS.open "SELECT * FROM my_range", oConn
do until RS.EOF
' Response.Write ( RS("NAME") & RS("Ext") & RS("Dept") & RS("Location") & RS("Signatures")& "")
WITH Response
.Write " <tr onMouseover=" & Chr(34) & "this.bgColor='#FFFF99'" & Chr(34) & "; onMouseout=" & Chr(34) & "this.bgColor=document.bgColor;" & Chr(34) & ">" & vbCrlf
.Write " <td class='bodytext' nowrap><a href='mailto:" & RS( "Name") & "'>" & rs( "Name") & "</a></td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Ext" ) & "</td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Dept" ) & "</td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Location" ) & "</td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Signatures" ) & "</td>" & vbCrlf
END WITH
to a HTML page. That part all works and looks fine. The one little wrinkle I have is that one column in the
spreadsheet are hyperlinks. The names come across to the HTML but not the links, I need these links to come across.
Is there a way to accomplish this?
I have a spreadsheet with 5 coliumns. Each column is in a "range". I am using this code to pull from my cell range:
RS.open "SELECT * FROM my_range", oConn
A "Responce.Write" command writes the data from each column to the html formatted web page. However, the 5th column,
which are hyperlinks on the spreadsheet justs pulls over the text of the cells, not the text with the hyperlinks.
Any help would be great!
This is the code I am using where "Signatures" is the column with the hyperlinks. The text of the hyperlink names from each cell, just not the links.
RS.open "SELECT * FROM my_range", oConn
do until RS.EOF
' Response.Write ( RS("NAME") & RS("Ext") & RS("Dept") & RS("Location") & RS("Signatures")& "")
WITH Response
.Write " <tr onMouseover=" & Chr(34) & "this.bgColor='#FFFF99'" & Chr(34) & "; onMouseout=" & Chr(34) & "this.bgColor=document.bgColor;" & Chr(34) & ">" & vbCrlf
.Write " <td class='bodytext' nowrap><a href='mailto:" & RS( "Name") & "'>" & rs( "Name") & "</a></td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Ext" ) & "</td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Dept" ) & "</td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Location" ) & "</td>" & vbCrlf
.Write " <td class='bodytext' nowrap>" & rs( "Signatures" ) & "</td>" & vbCrlf
END WITH