Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Const strDocPath As String = "c:\test.doc" 'Full path of a word document
Dim appWord As Object ' Word.Application
Dim objDoc As Object ' Word.Document
Dim lngCnt As Long 'Counter for looping
Dim strTemp As String
If Target.Address(0, 0) <> "C6" Then Exit Sub 'Change this address for the Profit value
Application.EnableEvents = False
Set appWord = CreateObject("Word.Application")
Set objDoc = appWord.Documents.Add(strDocPath)
' appWord.Visible = True
If 7 - Len(Target.Value) <> 0 Then
For lngCnt = 1 To 7 - Len(Target.Value)
strTemp = strTemp & Chr(&H20)
Next
End If
strTemp = strTemp & Target.Value
For lngCnt = 1 To 7
objDoc.Bookmarks("Num" & lngCnt).Range.Delete Unit:=1, Count:=1
objDoc.Bookmarks("Num" & lngCnt).Range.InsertAfter Mid(strTemp, lngCnt, 1)
Next
objDoc.SaveAs strDocPath 'Save a word document
objDoc.Close 'Close a word document
appWord.Quit 'Quit Word Application
Set appWord = Nothing 'Cleaning an object variable
Set objDoc = Nothing 'Cleaning an object variable
Application.EnableEvents = True
End Sub