邮件excel html,小数点分隔符在电子邮件(HTML/CSS)在Excel的VBA编程
A B C
1 25,000,000.50
2
3
而下面的VBA代碼與內(nèi)容發(fā)送電子郵件單元格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電子表格中所看到的,我使用“,”作為小數(shù)分隔符。在電子郵件中,不使用這個(gè)小數(shù)點(diǎn)分隔符。相反,該號(hào)碼被寫為25000000.5而沒有“,”。
有沒有在VBA或HTML/CSS中顯示帶有正確小數(shù)點(diǎn)分隔符的數(shù)字的方法?
2017-05-30
Michi
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的邮件excel html,小数点分隔符在电子邮件(HTML/CSS)在Excel的VBA编程的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网页最少要有一个html标签,PHP_网
- 下一篇: 广西大学计算机技术复试题库,2018年广