Format(123456789, "###,###")
結果 = 123,456,789
Format(0.0189, "0.00%")
結果 = 1.89%
Format(Now, "yyyy/MM/dd ")
結果 = 2012/07/25
中華民國年月日
(Val(Format(Now, "yyyy")) - 1911) & Format(Now, "/MM/dd")
結果 = 1010725
延伸閱讀: 使用word開啟網頁資料,可以將網頁下載存成WORD檔.
前言:使用VBA程式去抓取A17儲存格資料;
txt=Worksheets("日報表").Cells(17, 1).value
結果 = 篩號
1. 
txt=Worksheets("日報表").Cells(23, 4).value
結果 = 95
VB.NET 寫法:
Dim excelapp As Object
excelapp = GetObject(, "Excel.Application")
MsgBox(excelapp.Worksheets("日報表").Cells(17, 1).value)
excelapp = Nothing
ahorng
延伸閱讀: 使用word開啟網頁資料,可以將網頁下載存成WORD檔.