Hello
I would like to move a number from excel to word with decimal number formatting, like 10.00
I have tried with this program but the number moved to word is 10 and not 10.00, please could someone help me?
Thank you
-------------------------------------------------------------------
Sub ExcelToWord()
Dim objWord As Object
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Sheet1")
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
objWord.Documents.Open "C:\New\Test.docx"
With objWord.ActiveDocument
.Bookmarks("Book1").Range.Text = ws.Range("A1").Value ' value in A1 is 10.00
End With
Set objWord = Nothing
End Sub
I would like to move a number from excel to word with decimal number formatting, like 10.00
I have tried with this program but the number moved to word is 10 and not 10.00, please could someone help me?
Thank you
-------------------------------------------------------------------
Sub ExcelToWord()
Dim objWord As Object
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Sheet1")
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
objWord.Documents.Open "C:\New\Test.docx"
With objWord.ActiveDocument
.Bookmarks("Book1").Range.Text = ws.Range("A1").Value ' value in A1 is 10.00
End With
Set objWord = Nothing
End Sub