Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unwanted "quotes"

The first time I've posted I think and after hours of trying to figure it out
I did. Answering myself I found that I should use the

PRINT #1, data

instead of

WRITE #1, data


One of these days I really need to take a VB class. Thanks anyway.



"Vance Lee Meurer" wrote:

My Excel macro is supposed to be building a web page. As you can see from
the next several lines I am getting " " when I don't want them.

"<tr"
"<tdMicrosoft Outlook</td"
"<td11.0.6359</td"
"<td</td"
"</tr"

The code looks like this

Open ThisWorkbook.Path & "\" & Range("H28").Value & ".htm" For Output As #1
...
...
'Get office apps
For i = 77 To 82
Outline = "<tr"
Write #1, Outline
Outline = "<td" & Range("H" & i).Value & "</td"
Write #1, Outline
Outline = "<td" & Range("G" & i).Value & "</td"
Write #1, Outline
Outline = "<td" & Range("E" & i).Value & "</td"
Write #1, Outline
Outline = "</tr"
Write #1, Outline
Next

Thanks for your help in advance.

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
"Blank" cells showing unwanted data Ed O'Brien Excel Discussion (Misc queries) 4 April 19th 10 06:55 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
MSN stock quotes - Error message "problem displaying attributes" jd Excel Discussion (Misc queries) 0 November 13th 07 10:34 PM
"formula is too long" AND test for whether double-quotes are next-to text or number?? The Moose Excel Discussion (Misc queries) 2 September 14th 06 05:29 AM
Unwanted "Total" in Data Field in Pivot Table ExcelMonkey[_105_] Excel Programming 0 March 4th 04 11:51 PM


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