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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML commands recognized in Excel?

Status
Not open for further replies.

jlindahl

Programmer
Sep 23, 2003
46
US
I generate an excel spreadsheet from an asp page with the Response.ContentType &quot;application/vnd.ms-excel&quot; command. One of the fields in the table is a hyperlink, response.write &quot;<td><a href=dataentry_display.asp?&quot; & tRecSet.fields(x) & &quot; target='_blank'>&quot; & tRecSet.fields(x) & &quot;</a></td>&quot;
I want to be able to open this hyperlink in a new window. Currently I can only get it to open in the current window, and I need it to open in a new window.
Does Excel not recognize the target property?
Please help. Thanks.
 
Should work with a couple of single quotes added (see below in red) but...It looks like you're trying to create a querystring with no key. The value is there but no key:


&quot;<td><a href='dataentry_display.asp?MissingKey='&quot; & tRecSet.fields(x) & &quot;' target='_blank'>&quot; & tRecSet.fields(x) & &quot;</a></td>&quot;




 
i do have it in the anchor tag. it's being written through vbscript (response.write), so i only use a single quote, must i use a double quote?
 
Veep, those extra single quotes will not even allow the page to be found now.
 
Sorry. Lose the quote after the &quot;=&quot; sign.
Code:
&quot;<td><a href='dataentry_display.asp?MissingKey=&quot; & tRecSet.fields(x) & &quot;' target='_blank'>&quot; & tRecSet.fields(x) & &quot;</a></td>&quot;

Opens a new window on my box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top