- ©«¤l
- 231
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 293
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- KEELUNG
- µù¥U®É¶¡
- 2010-7-24
- ³Ì«áµn¿ý
- 2018-8-28
|
ÁÂÁª©¥D¤j¤j¡G
¤p§Ì¸ÕµÛ§ïÅܤU¦C»yªk
©Ò±o¨ìªº·|¦³¤GºØµ²ªG¡C
»yªk¦p¤U¡G
Sub Ex()
Dim a As CommandBar
Set a = Application.CommandBars(1)
MsgBox "¥\¯àªí1 ¦WºÙ: " & a.Name & Chr(10) & "¥\¯àªí1 ¦a°Ï¦WºÙ: " & a.NameLocal
With Range("a1")
.Value = Date
.NumberFormat = "m/d/yyyy"
MsgBox "Range(""a1"") Åã¥Ü¬°: " & .Text & Chr(10) & "NumberFormat:" & Space(10) & .NumberFormat & Chr(10) & "NumberFormatLocal: " & .NumberFormatLocal
End With
With Range("b1")
.Value = Date
.NumberFormatLocal = "m/d/yyyy"
MsgBox "Range(""b1"") Åã¥Ü¬°: " & .Text & Chr(10) & "NumberFormat:" & Space(10) & .NumberFormat & Chr(10) & "NumberFormatLocal: " & .NumberFormatLocal
End With
With Range("c1")
.Value = Date
.NumberFormatLocal = "mm/dd/yyyy"
MsgBox "Range(""c1"") Åã¥Ü¬°: " & .Text & Chr(10) & "NumberFormat:" & Space(10) & .NumberFormat & Chr(10) & "NumberFormatLocal: " & .NumberFormatLocal
End With
With Range("d1")
.Value = Date
.NumberFormat = "mm/dd/yyyy"
MsgBox "Range(""d1"") Åã¥Ü¬°: " & .Text & Chr(10) & "NumberFormat:" & Space(10) & .NumberFormat & Chr(10) & "NumberFormatLocal: " & .NumberFormatLocal
End With
End Sub
²Ä¤@Ó ¡G2010/10/3
²Ä¤GÓ ¡G10/3/2010
²Ä¤TÓ ¡G10/03/2010
²Ä¥|Ó ¡G10/03/2010
³o¯u¥¿ªº®t²§¬°¦ó
¤p§Ì¥Ø«e©|¦b
´¢´ú¤§¤¤¡C
ÁÂÁª©¥D¤j¤j¡C |
|