Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel97 SaveAs Method question
Message
De
16/02/1999 14:42:43
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Excel97 SaveAs Method question
Divers
Thread ID:
00188089
Message ID:
00188089
Vues:
69
Hi,

I'm working in VFP6 and Excel 97. I'm creating Excel files that are overwritten each time the program is run. I'm using the SaveAs method with what I think are the appropriate parameters and I get a dialog box that comes up xxxx.xls already exists, do you want to overwrite? I don't want this behavior.

I'm trying to get the SaveAs method NOT to ask me if I want to overwrite an existing file. Below is the command with all the parameters. Am I missing something?


oXls.ActiveWorkbook.SaveAs(lcSaveFile,-4143, "", "", "False", "False" ,1 ,2)

The SaveAs Method uses the following parameters:
filename
fileformat = xlNormal (excel constant)
password = character string
writeResPassword = character string
ReadOnlyRecommended = either True or False (Is this passed as a character string?)
CreateBackup = True or False
AccessMode = xlShared, xlExclusive, or xlNoChange
Conflict Resolution = xlUserResolution, xlLocalSessionChange, or xlOtherSessionChanges

I've tried recording a macro to give me all the parameters but it stops at the CreateBackup parameter.

TIA,
Jacci
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform