H
Hege M
Hi.
I am trying to replace space with hard space in i string variable.
I found that space was chr(32) but I haven't been able to find the ascii
code for hard space. The bookmark is in the footer section so I can't use
ordinary find/replace.
The code I am trying to use is:
Dim var As String
Dim ferdig As String
var = "Hei dette er Hege"
ferdig = Replace(var, Chr(32), Chr(?), 1, Len(var))
ActiveDocument.Bookmarks("Test").Range.Text = ferdig
If anyone know what to put insted of ? or have an alternative way of doing
this I would be very grateful.
Hege
I am trying to replace space with hard space in i string variable.
I found that space was chr(32) but I haven't been able to find the ascii
code for hard space. The bookmark is in the footer section so I can't use
ordinary find/replace.
The code I am trying to use is:
Dim var As String
Dim ferdig As String
var = "Hei dette er Hege"
ferdig = Replace(var, Chr(32), Chr(?), 1, Len(var))
ActiveDocument.Bookmarks("Test").Range.Text = ferdig
If anyone know what to put insted of ? or have an alternative way of doing
this I would be very grateful.
Hege