Why my macros are getting deleted?

M

mlsrinivas

Hi,

Task: To create macros that perform certain calculations upon pressing
the keys assigned to them. This also has a form displayed which
communicates w/ sql sever database and displays the results. The macro
creation, tool bar creation, and form importing are to be
programmatically from vb.

How I did it?: As I am not aware of creating macros programmatically,
I do it directly in ms-word, creating macros and writing the code in vb
editor. I import the form also from this. Save it and create a tool bar
and assign keys to it.

How to accomplish the task in the above said way?

Above all, my macros get deleted very frequently. What could be the
reason? How to create a macro that do not get deleted? I see some
software's related to ms-word like Wordweb dictionary, install a
toolbar and a macro for that which doesn't get deleted easily. How to
do this way?

Any sort of help is appreciated.

Thanks

Srinivas
 
C

Cindy M -WordMVP-

I don't really understand the question. and it's not clear to me whether
you're really trying to program in Word VBA, or in Visual Basic (you
specifically use the term "vb"). If the latter, are you trying to create
an COM Addin?

Are you trying to develop something to be distributed and installed on
many machines, or just for yourself? Are you familiar with the term
"template" and "customization context"? Have you checked where you're
actually saving these macros and things, and made sure you're explicitly
saving the "container" in which you create them?
Task: To create macros that perform certain calculations upon pressing
the keys assigned to them. This also has a form displayed which
communicates w/ sql sever database and displays the results. The macro
creation, tool bar creation, and form importing are to be
programmatically from vb.

How I did it?: As I am not aware of creating macros programmatically,
I do it directly in ms-word, creating macros and writing the code in vb
editor. I import the form also from this. Save it and create a tool bar
and assign keys to it.

How to accomplish the task in the above said way?

Above all, my macros get deleted very frequently. What could be the
reason? How to create a macro that do not get deleted? I see some
software's related to ms-word like Wordweb dictionary, install a
toolbar and a macro for that which doesn't get deleted easily. How to
do this way?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
C

Charles Kenyon

Why they get deleted? Where are you trying to save them?

From the FAQ:

28. I can't save my customizations - AutoText, menus, etc.
Can't save normal.dot...
If you have Adobe Acrobat 7 installed see the last section of
http://www.gmayor.com/lose_that_adobe_acrobat_toolbar.htm.
Otherwise, hold down the Shift key when selecting the File
menu and select Save All.

Hope this helps,
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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