Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Eric,
Replace cam in in XL2000. Here's a custom Replace function written by Jan Karel Pieterse, which you can add to your project, it works the same Function MyReplace(sSource As String, _ sToReplaceWith As String, _ sToReplace As String) As String Dim lPos As Long Dim sTemp As String sTemp = sSource Do lPos = InStr(sTemp, sToReplace) sTemp = Left(sTemp, lPos - 1) & sToReplace & _ Right(sTemp, Len(sTemp) - Len(sToReplaceWith) - lPos + 1) Loop Until InStr(sTemp, sToReplace) = 0 MyReplace = sTemp End Function -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Eric" wrote in message ... maybe the replace function does not work because I use Excel 97? Couldn't get the substitute function working either, though.. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ ~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save as CSV: extra spaces around commas | Excel Discussion (Misc queries) | |||
removing extra spaces | Excel Discussion (Misc queries) | |||
eliminating extra spaces in Excel cells | Excel Discussion (Misc queries) | |||
Removing random extra spaces | Excel Discussion (Misc queries) | |||
Extra Spaces with copied data | Excel Discussion (Misc queries) |