Tecnologia, programação e muito Visual FoxPro.

domingo, 14 de fevereiro de 2010

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

 

makro pak ricky di komputer siti (setting Desimal symbol = TITIK)
hasilnya seperti ini
 
kolom D Koom F(hasil)
1,26 126
1,36 136
1,46 146
1,56 156
1,66 166
1,76 176
1,86 186
1,96 196
1,106
1106
 

----- Original Message -----
Sent: Sunday, February 14, 2010 9:06 AM
Subject: Re: ]] XL-mania [[ Convert text to number (copy paste)

Dear Mas Afan
 
Coba dgn Macro ini mas.
 
+++++++++++++++++++++++++++++++++++++++++++
Private Sub CommandButton1_Click()
Dim rng As Range
Dim rCell As Range
 
Set rng = Range("D2:D10")
rng.Copy
 
Range("F2").Select
Selection.PasteSpecial Paste:=xlPasteValues
For Each rCell In Selection
    rCell = CDec(rCell)
    rCell.NumberFormat = "General"
Next

Application.CutCopyMode = False
End Sub

+++++++++++++++++++++++++++++++++++++++++++
 
Saya mencoba mengkonvertnya dengan fungsi CDec
 
Thanks Riky

__._,_.___
+-:: 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