home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
MVUPDAT3.ZIP
/
RAINBOW.ZIP
/
COLORS.ZIP
/
COLORS8.TXT
< prev
next >
Wrap
Text File
|
1996-04-13
|
1KB
|
47 lines
Macro FileSaveAs
Sub MAIN
On Error Goto ErrorRoutine
If macros.bDebug Then MsgBox "start FileSaveAs"
DΘsactiverMacrosAuto 0
Dim dlg As FichierEnregistrerSous
GetCurValues dlg
bDoSaveToDoc = - 1
On Error Goto CancelSaveToDoc
Dialog dlg
Goto SkipCancel
CancelSaveToDoc:
bDoSaveToDoc = 0
SkipCancel:
On Error Goto ErrorRoutine
If bDoSaveToDoc Then
If macros.bDebug Then MsgBox "in If bDoSaveToDoc"
REM if saved as word doc => save as template
If dlg.Format = 0 Then dlg.Format = 1
If dlg.Format = 1 Then
macros.SavToGlobal(dlg.Nom)
macros.SavToDoc(dlg.Nom)
macros.SavToDoc(NomFichier$())
FichierEnregistrerSous dlg
End If
End If
macros.objectiv
Goto Done
ErrorRoutine:
If Err <> 102 Then
FichierEnregistrerSous dlg
End If
On Error Goto Done
If macros.bDebug Then
MsgBox "error " + Str$(Err) + " occurred"
End If
Done:
End Sub