H
hans_enigma
Hello,
I'm using a VBA to change text whitin a document.
Sub verv()
Dim contents
If Not FrontPage.ActiveDocument Is Nothing Then
If FrontPage.ActivePageWindow.ViewMode < fpPageViewNormal Then
FrontPage.ActivePageWindow.ViewMode = fpPageViewNormal
End If
contents = ActiveDocument.all(0).innerHTML
contents = Replace(contents, "03-06-", "<br>03-06-", 1, -1,
vbTextCompare)
contents = Replace(contents, "27-11-", "<br>27-11-", 1, -1,
vbTextCompare)
ActiveDocument.all(0).innerHTML = contents
End If
End Sub
This works fine at the opened document.
Is it possible to use this script for example 25 document without openening
the documents?
I'm using a VBA to change text whitin a document.
Sub verv()
Dim contents
If Not FrontPage.ActiveDocument Is Nothing Then
If FrontPage.ActivePageWindow.ViewMode < fpPageViewNormal Then
FrontPage.ActivePageWindow.ViewMode = fpPageViewNormal
End If
contents = ActiveDocument.all(0).innerHTML
contents = Replace(contents, "03-06-", "<br>03-06-", 1, -1,
vbTextCompare)
contents = Replace(contents, "27-11-", "<br>27-11-", 1, -1,
vbTextCompare)
ActiveDocument.all(0).innerHTML = contents
End If
End Sub
This works fine at the opened document.
Is it possible to use this script for example 25 document without openening
the documents?