di modul this workbook
Private Sub Workbook_Open()
Dim Hariini As Date
Application.DisplayAlerts = False
Hariini = DateValue("01/01/09") rem langsung aja misalnya akan
dibatasi pada tgl due date
rem kalo pake formula gini kali ya=TEXT(DAY(A2)+181,"dd-mm")
If Hariini < Now Then
MsgBox "Masa pemakaian telah melewati limit", vbExclamation
With ThisWorkbook
.Saved = True
.ChangeFileAccess Mode:=xlReadOnly
End With
ThisWorkbook.Close
End If
Application.quit
End Sub
2009/1/26, [email protected] <[email protected]>:
> Bro" Abimono, mau nanya nih..
> Gimana caranya melekatkan trial program pada file excel ? Misal suatu file
> berisi formula perhitungan sudah terpakai selama 180 hari dan dihari ke 181
> file tsb akan ter-block kemudian muncul dialog box yg meminta registry code
> utk tetap dpt membuka file tsb
> Mohon advisenya
> Thx
> [email protected]
> Sent from my BlackBerry(R) smartphone from Sinyal Bagus XL, Nyambung
> Teruuusss...!
> ------------------------------------
>
> +-:: XL-mania ::::::::::::::::::::----------------------------------+
> | Makan bakmi pakai capcai, dari kami: gong xi fat coi! |
> | Jangan lupa angpao buat momoddddsss... huehuehuehue... |
> | 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 |
> | [email protected] 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/[email protected] |
> +-------------------------------------------------------------------+Yahoo!
> Groups Links
>
>
>
>