VBE COM Add-in using VB6, docmd

M

Mark Schneider

Hi,
I am looking for a way to save a module my add-in generates/edits
programmatically.

Basically it's a indenting/documentation tool coded in VB6 for VBE. I am
able to edit modules (indenting, inserting documentation blocks) or generate
new ones but I desperately need a way to save these changes.
a. I don't want the user to be prompted when he closes VBE
b. I have to save in order for it to work for many modules. Can't keep
400 modules unsaved until users saves.

From Access VBA I can save a module using docmd:
DoCmd.Close acModule, mdl.Name, acSaveYes

But can I access docmd in any way from an add-in developed in VB6???
Or is there any other way without docmd to tell the VBE to save given
modules?

Please help, this is really important
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top