Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an excel file that uses VBA to convert the information in
various other files into HTML. It works fine, including the following lines which convert "&" symbols to their html form: For j = 8 To lastrow rankList = rankList & WorksheetFunction.Substitute(shRanks.Cells (j, i).Text, " & ", " & ") & "<br /" Next j However, when I try to use the same technique to avoid surplus instances of "</p" tags by using the following code: traveller(colNo) = WorksheetFunction.Substitute(traveller(colNo), "</ p</p", "</p") it gives me the following error: Run-time error '1004' Unable to get the Substitute property of the WorksheetFunction class. I've tried doing this in various other ways, but it always produces the same error. What am I doing wrong? Gordon Rainsford |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Substitute | Excel Worksheet Functions | |||
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE.... max. limit 8 :( | Excel Discussion (Misc queries) | |||
More than 7 IF? any substitute? | Excel Worksheet Functions | |||
Using &Chr$(39)& as substitute for ' in VBA | Excel Discussion (Misc queries) | |||
Substitute chr(39) | Excel Programming |