How do I save a record from an excel template to a database in a .

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I save a record from an Excel template to a database in a single step.
Currently, the process is to click on file save, then when the second window
appears, select create new record, and ok. I would like to save the data as
a new record in the database using a single step.
 
hi,
do the whole process you just described on macro record.
Tools>macro>record new macor.
Then on the template add a command button from the toolbox
and attach the macro to it.
how?
1.drag the button from the toolbox toolbar to where you
want it.
2.right click the button>click view code.
3. between sub and end sub enter
call mymacro 'the one you just recorded.
 

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

Back
Top