K
Krisa
Hi,
I used Dana DeLouis' excellent code for transferring the Autoreplace values
from one PC to another (code below). It works great on my XP machines, but
when I tried it on a client's NT machines, I got run time error 1004:
Unable to get ReplacementList property of Autoreplace. I know next to
nothing about NT. Any ideas, please?
TIA,
Krisa
Public Sub AutoCorrectEntries_Display()
'// Dana DeLouis
'// Backup AutoCorrect to Worksheet
Dim ACE
ACE = Application.AutoCorrect.ReplacementList
ActiveWorkbook.Sheets("AutoCorrect").Select
Range(Cells(1), Cells(UBound(ACE), 2)) = ACE
Columns("A:B").AutoFit
End Sub
Public Sub AutoCorrectEntries_Add()
'// Dana DeLouis
'// Add AutoCorrect entries.
'// Column A -> Wrong Word
'// Column B -> Correct Word
Dim rng As Range
ActiveWorkbook.Sheets("AutoCorrect").Select
With Application.AutoCorrect
For Each rng In Columns(1) _
.SpecialCells(xlConstants, xlTextValues).Cells
.AddReplacement rng, rng.Offset(0, 1)
Next
End With
End Sub
I used Dana DeLouis' excellent code for transferring the Autoreplace values
from one PC to another (code below). It works great on my XP machines, but
when I tried it on a client's NT machines, I got run time error 1004:
Unable to get ReplacementList property of Autoreplace. I know next to
nothing about NT. Any ideas, please?
TIA,
Krisa
Public Sub AutoCorrectEntries_Display()
'// Dana DeLouis
'// Backup AutoCorrect to Worksheet
Dim ACE
ACE = Application.AutoCorrect.ReplacementList
ActiveWorkbook.Sheets("AutoCorrect").Select
Range(Cells(1), Cells(UBound(ACE), 2)) = ACE
Columns("A:B").AutoFit
End Sub
Public Sub AutoCorrectEntries_Add()
'// Dana DeLouis
'// Add AutoCorrect entries.
'// Column A -> Wrong Word
'// Column B -> Correct Word
Dim rng As Range
ActiveWorkbook.Sheets("AutoCorrect").Select
With Application.AutoCorrect
For Each rng In Columns(1) _
.SpecialCells(xlConstants, xlTextValues).Cells
.AddReplacement rng, rng.Offset(0, 1)
Next
End With
End Sub