邮件excel html,小数点分隔符在电子邮件(HTML/CSS)在Excel的VBA编程
A B C
1 25,000,000.50
2
3
而下面的VBA代碼與內容發送電子郵件單元格A1:
Sub Separators_in_Email()
If ExitAll = False Then
Dim OApp As Object, OMail As Object, signature As String
Set OApp = CreateObject("Outlook.Application")
Set OMail = OApp.CreateItem(0)
With OMail
.display
End With
signature = OMail.HTMLBody
With OMail
.To = "[email?protected]"
.Subject = "test"
.HTMLBody = "
I want this number " & Sheet1.Range("A1") & " to be shown with its decimal separators as in the Excel sheet
"End With
Set OMail = Nothing
Set OApp = Nothing
Else
End If
End Sub
電子郵件本身完美的作品。
但是,正如您在Excel電子表格中所看到的,我使用“,”作為小數分隔符。在電子郵件中,不使用這個小數點分隔符。相反,該號碼被寫為25000000.5而沒有“,”。
有沒有在VBA或HTML/CSS中顯示帶有正確小數點分隔符的數字的方法?
2017-05-30
Michi
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的邮件excel html,小数点分隔符在电子邮件(HTML/CSS)在Excel的VBA编程的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网页最少要有一个html标签,PHP_网
- 下一篇: 广西大学计算机技术复试题库,2018年广