Tecnologia, programação e muito Visual FoxPro.

sexta-feira, 7 de maio de 2010

]] XL-mania [[ macro isi formula & rangeName

 

Dear para suhu.....

World Cup 2010 tinggal bbrp hari lagi, tapi kok belum ada yg posting jadwal....
dulu.... kita pernah dari mbak Siti, tapi saya mengalami kesulitan mengupdate-nya

Pertanyaan 1 : membuat range Name
macro yang ada hanya bisa update range yang terakhir ( satu saja ) pdhal yg diinginkan ada 3 range

Sub blah()
For i = 8 To 55
    ActiveWorkbook.Names.Add Name:=WorksheetFunction.Substitute(Cells(i, 4), " ", ""), RefersToR1C1:="=WC2010!R" & i & "C5"
Next i
End Sub

Pertanyaan ke-2 : input Formula dg macro VBA
misalkan ada variable "rumus", kemudian isi dari variable rumus ini ingin saya transfer/masukan kedalam sebuah range. Bagai mana sintak-nya, contoh dibawah ini kurang apa ya ?

     For n = 1 To 4
      nama = top_team.Cells(n, 1)
      rumus = nama + "_Played"
      ActiveCell.FormulaR1C2 = "=COUNT(" + rumus + ")"
    'ActiveCell.FormulaR1C1 = "=COUNT(Meksiko_Played)"
    'Range("Y12").Select
    
    Next n


sebelumnya saya ucapkan terima kasih.

..::kusnadi::..
www.cepak05.blogspot.com
www.kopkarlamina.blogspot.com
www.nilawood.co.id
####081@@@229@@@711@@@@76####
www.facebook.com/kusnadi.dians


__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| uaaaaa... mau game maeeemoooooooo....                             |
| 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.


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


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

.

__,_._,___

Nenhum comentário:

Arquivo do blog