I renamed the macros as follows.
Code:
Sub Number_One()
ThisWorkbook.Sheets("Sheet1").Range("A1:A100").Replace " ", "", 1
End Sub
Code:
Sub Number_Two()
Dim c As Range
For Each c In Range("A1:A" & Cells(Rows.Count, 1).End(xlUp).Row)
c.Value = Replace(c.Value, " ", "", 1)
Next c
End Sub
Code:
Sub Number_Three()
Range("A:A").Replace " ", ""
End Sub
Code:
Sub Number_Four()
Sheets("Sheet1").Columns(1).Replace What:=" ", Replacement:="", LookAt:=xlPart
End Sub
(I have not played around with Paul's code from Post #4 yet. Will try that later.)
Then I ran them in order as below with result shown.
Order of macros:
Number_One. Nothing happens.
Number_Two. Works (Followed By data replacing to original)
Number_Three. Nothing Happens
Number_Four. Works (Followed By data replacing to original)
Number_Three. Works (Followed By data replacing to original)
Number_Two. Works (Followed By data replacing to original)
Number_One. Nothing happens.
Order of macros:
Number_One. Nothing happens.
Number_Four. Works (Followed By data replacing to original)
Number_Three. Works (Followed By data replacing to original)
Number_Two. Works (Followed By data replacing to original)
Order of macros:
Number_One. Nothing happens.
Number_Two. Works (Followed By data replacing to original)
Number_Three. Nothing Happens
Number_Two. Works (Followed By data replacing to original)
Number_Three. Nothing Happens
Number_One never works.
Number_Two always works.
Number_Three only works after Number_Four was used.
Number_Four always works.
If I knew why it is like this I would not have posted all of this. I would have just fixed it.