Tecnologia, programação e muito Visual FoxPro.

segunda-feira, 6 de agosto de 2012

Re: ]] XL-mania [[ macro yang lemoooOOooott

 

Hai Gustari,

Coba prosedur berikut :
Public Sub ngeSum()
    Dim rng As Range
    Dim lLastRow As Long
   
    Set rng = Range("k4").CurrentRegion
    lLastRow = rng.Rows.Count + rng.Resize(1, 1).Row - 1
    With Range("k4:k" & lLastRow)
        .Formula = "=Sum(h4:j4)"
        ActiveSheet.Calculate
        .Value = .Value
    End With
End Sub

Wassalam,
Kid.

2012/8/4 gus tari <gustari32@gmail.com>
 

Dear para pakar XL mania

Saya mempunyai coding makro (terlampir) yang semakin lemot bila memori
semakin banyak (karena Sheet setiap hari bertambah).
Mohon pencerahan dari pakar semua.
Terimakasih.

Salam
Gustari



__._,_.___
Recent Activity:
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| Selamat beribadah puasa...                                        |
+-------------------------------------------------------------------+
| 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.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