I'm not sure why spaces would be causing the problem, but if you think
it is then you might want to try trimming the text. Try something like
this...
Dim str as String
With ActiveSheet.PageSetup
If Len(.CenterFooter) > 0 Then
str = Trim(.CenterFooter) & " Your Text Here"
.CenterFooter = str
End if
End With
When I ran a test with spaces, both with and without surrounding text
the above worked just fine by replacing the spaces with the text, or
simply removing them from the surrounding text.