Coba anda sisipkan
ActiveSheet.DisplayPageBreaks = False
sebelum hiderows
~..DonnI..~
----- Original Message -----From: Wahid KurniawanSent: Friday, June 26, 2009 7:15 AMSubject: ]] XL-mania [[ setelah print preview, hide macro jadi lambat, mohon pencerahan
Dear para Guru.... Mohon pencerahannya. Saya membuat macro berdasarkan eventPrivate Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("E13,E5")) Is Nothing And Target.Cells. Count = 1 Then ActiveSheet.Unprotect Password:="password " HideRowsActiveSheet.Protect Password:="password " End IfEnd Subsedangkan hide rowsnya saya pakaiSub HideRows()On Error Resume NextWith Range("A33:B131") .EntireRow.Hidden = FalseFor i = 1 To .Rows.CountIf WorksheetFunction.Sum(.Rows( i)) = 0 Then .Rows(i).EntireRow.Hidden = True End IfNext iEnd WithEnd SubMasalah saya adalah, setiap kali saya lakukan print preview, kemudian saya ubah di sel E13, E5, proses hide rows menjadi sangat lambat dibanding sebelum melakukan preview. Running akan normal lagi setelah file ditutup dan dibuka lagi.Mohon bantuan dan sarannya.TerimakasihWahid
__._,_.___
+-:: XL-mania ::::::::::::::::::::----------------------------------+
| XL-mania, berjuang untuk rakyat, pancen oyeeee, LANJUTKAN! |
| 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 |
+-------------------------------------------------------------------+
| XL-mania, berjuang untuk rakyat, pancen oyeeee, LANJUTKAN! |
| 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
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
.
__,_._,___
Nenhum comentário:
Postar um comentário