Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a macro to a module in Excel
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Adding a macro to a module in Excel
Divers
Thread ID:
00935206
Message ID:
00935206
Vues:
51
How can I add a sub to a particular module in excel?
1. I have a spreadsheet with 6 module that is
oE = GETOBJECT(,'excel.application')
oe.modules.Count = 6
2. If I try to do add a sub to module 1, I get an error, unknown name
oe.modules[1].Add.InsertFile("tt.txt")
3. Adding the sub, without specifying a module number, results in creating an additional
module each time
oe.modules.Add.InsertFile("tt.txt")
Thanks
Steve
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform