![]() |
|
#3
|
||||
|
||||
|
I'd be inclined to use a macro:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim LRow As Long, LCol As Long, cCol As Long, cRow As Long
Dim StrTmp As String, StrFnd As String, StrRep As String
With ActiveSheet
LRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
LCol = .Cells.SpecialCells(xlCellTypeLastCell).Column
For cCol = 2 To LCol
StrTmp = .Cells(2, cCol).Value
For cRow = 3 To LRow
If Trim(.Cells(cRow, 1).Value) = "" Then Exit For
StrFnd = .Cells(cRow, 1).Value
StrRep = .Cells(cRow, cCol).Value
StrTmp = Replace(StrTmp, StrFnd, StrRep)
Next
.Cells(LRow + 2, cCol).Value = StrTmp
Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Generate sequential code tags
|
ssarank | Word VBA | 3 | 12-25-2013 02:44 AM |
| How to use Find and Replace with HTML tags? | srz92 | Word | 0 | 07-17-2013 07:55 AM |
Trying to wrap HTML tags around multiple different words in one operation
|
String | Word VBA | 4 | 06-06-2013 06:23 AM |
| Attaching MSG file is stripped on send and HTML tags show on previewing prior to send | Fantastic4 | Outlook | 0 | 01-09-2012 12:18 PM |
For Moderator: Code tags?
|
Ulodesk | Forum Support | 1 | 07-12-2011 07:54 AM |