Tecnologia, programação e muito Visual FoxPro.

segunda-feira, 15 de fevereiro de 2010

Re: ]] XL-mania [[ Convert text to number (copy paste)

 

Sedikit menambahkan di macro-nya Siti Vi (see below) ^_^

Private Sub CommandButton2_Click()
Dim rCell As Range
If Int("3.1") = 3 Then
'setting di pc: TandaPemisahDesimal = TITIK
tanda1 = ","
tanda2 = "."
Else
'setting di pc: TandaPemisahDesimal = KOMA
tanda1 = "."
tanda2 = ","
End If
For Each rCell In Range("D2:D10")
rCell(1, 5).NumberFormat = "General"
rCell(1, 5) = Val(Replace(rCell, tanda1, tanda2))
Next
End Sub

----- Original Message -----
From: "siti Vi" <setiyowati.devi@gmail.com>

Private Sub CommandButton2_Click()
' siti Vi / 14 feb 2010
'-----------------------
Dim rCell As Range
For Each rCell In Range("D2:D10")
rCell(1, 5).NumberFormat = "General"
rCell(1, 5) = Val(Replace(rCell, ",", "."))
Next
End Sub

'setting di pc: TandaPemisahDesimal = TITIK

__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| Happy Valentine's Day! Gong Xi Fat Choi! Jangan lupa kiriman      |
| coklatnya buat momods... kekekekekeke....                         |  
| http://www.facebook.com/group.php?gid=37671048001&ref=mf          |
+-------------------------------------------------------------------+
| DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, |
| pembicaraan pribadi, one line message,  melecehkan,  tidak sopan. |
+-------------------------------------------------------------------+
| Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu" |
| Usahakan besar attachment < 200 kb. Gunakan  winzip  jika  perlu. |
+-------------------------------------------------------------------+
| Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke  |
| XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari |
| http://groups.yahoo.com/group/XL-mania/files/Promotion/           |
+-------------------------------------------------------------------+
| Berikan testimoni di : http://www.friendster.com/xlmania atau...  |
| http://www.xl-mania.com/2008/06/testimoni-xl-mania.html           |
+-------------------------------------------------------------------+
| Message lama ada di :                                             |
| http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id]  |
| http://www.mail-archive.com/xl-mania@yahoogroups.com              |
+-------------------------------------------------------------------+
.

__,_._,___

Nenhum comentário:

Arquivo do blog