Hi,
I have a VBA program that pulls messages out of another system (that posts messages on our intranet within HTML code) and processes them further in an Excel program. We have used this for several months with everything working great, until we figured out that Excel was ignoring text within < > characters.
The data is stored in the HTML code within the PRE and XMP tags. Excel is obviously not respecting the XMP tag any more.
For example:
The data part of the html code goes in as:
User text message
blah....
blah...
but someone eventually uses the < symbol
and everything up to there > symbol ends up getting ignored
But ends up in the Excel spreadsheet as:
User text message
blah....
blah...
but some one eventually uses the symbol ends up getting ignored
Is there any way to have VBA stop looking for tags? I know that the users could input as "< ;" but this is not really practical with this group.
Here is the code I am using:
Any ideas would be appreciated.
ERT123
</PRE>
I have a VBA program that pulls messages out of another system (that posts messages on our intranet within HTML code) and processes them further in an Excel program. We have used this for several months with everything working great, until we figured out that Excel was ignoring text within < > characters.
The data is stored in the HTML code within the PRE and XMP tags. Excel is obviously not respecting the XMP tag any more.
For example:
The data part of the html code goes in as:
User text message
blah....
blah...
but someone eventually uses the < symbol
and everything up to there > symbol ends up getting ignored
But ends up in the Excel spreadsheet as:
User text message
blah....
blah...
but some one eventually uses the symbol ends up getting ignored
Is there any way to have VBA stop looking for tags? I know that the users could input as "< ;" but this is not really practical with this group.
Here is the code I am using:
Code:
With Worksheets(SourceN).QueryTables.Add(Connection:=IPfull, Destination:=Worksheets(SourceN).Range("A1"))
.Name = PrgName & "-RAW"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = 3
.WebPreFormattedTextToColumns = False
.WebConsecutiveDelimitersAsOne = False
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Any ideas would be appreciated.
ERT123
</PRE>