본문 바로가기

공부/VBA

VBA - format 함수 사용법


Format("210.6", "#,##0.00") would return '210.60'
Format("210.6", "Standard") would return '210.60'
Format("0.981", "Percent") would return '98.10%'
Format("1267.5", "Currency") would return '$1,267.50'
Format("Sep 3, 2003", "Short Date") would return '9/3/2003'

'공부 > VBA' 카테고리의 다른 글

VBA - Application.OnTime Method  (0) 2011.04.19
VBA - Me keyword  (0) 2011.04.18
VBA - Type Conversion Functions  (0) 2011.04.18