Tecnologia, programação e muito Visual FoxPro.

quinta-feira, 29 de julho de 2010

Re: ]] XL-mania [[ Input data baru tanpa hilang data sebelumnya

 

mengisikannya jangan pakai RUMUS
tapi pakai tombol
seperti di workbok terlampir

code untuk tombol

Private Sub CommandButton1_Click()
'--mengisikan data "input" ke range hasil--
   Dim Hasil As Range, r As Integer
   Set Hasil = Range("J8")
   With WorksheetFunction
      If .CountIf(Range("I8:I19"), Range("C2")) > 0 Then
         r = .Match(Range("C2"), Range("I8:I19"), 0)
      End If
   End With
   Hasil(r, 1).Value = [D10].Value
   Hasil(r, 2).Value = [E10].Value
   Hasil(r, 3).Value = [F10].Value
End Sub

diperlukan TEST  IF COUNTIF maksodnya untuk mencegah error message
jika ternyata bulan di C2 tidak ada di Bulan di I8:I19

2010/7/27 deni Sukmana <dataxl@yahoo.com>
>
> Dear Para xl Mania,
> Mau nanya neh, bagaimana ya rumusnya
> jika  kita input data baru tetapi data lama tidak hilang?,
> untuk detailnya ada dicontoh filenya.
> terima kasih

__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| yak.... tembus 15,000. member ke 15,000 angkat tangannnnn... mau  |
| momods kirimin coklat.... hehehe...                               |
| 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              |
+-------------------------------------------------------------------+
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Hobbies & Activities Zone: Find others who share your passions! Explore new interests.


Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.

.

__,_._,___

Nenhum comentário:

Arquivo do blog