Template Data to Database


Posted by John Hung on April 19, 2001 6:59 AM

I have created a template and database and here is what I would like to accomplish.

Currently, after entering data into the template I would select Save from the file Menu Excel will allow me to Create a New Record from the Template File - Save to Database Dialogue Box. Then I would click on the Create a New Record option and the Save As Screen pops up. I would have to click cancel and Select from File New to create a new record again.

What I would like to do is:
After entering data in to template, I would like a macro to export the current data to the database file and bypass the Save As Screen and then have a blank new record (template) ready for data entry again. If possible leaving the data from the previous screen intact for editing (some records are alomost identical from one to the next except for minor changes).

Basically to explain it simply, I would like a macro activated by a button that sends the current data from a template screen to a database everytime you press it.

Thanks for any help.

John

Posted by Jeff on April 20, 2001 1:24 PM

John

Examine the "sendkeys" keyword in help. I've done the same thing you're suggesting What you can do is make a macro that says

SendKeys "%FS{TAB}{TAB}{DOWN}~"

Which is ALT + F(ile) + S(save)
then two tabs and down arrow to get to "Create New Record", then "~" which presses the enter key.

Make a "SAVE" button and assign this macro to it.

Hope that helps,
Jeff



Posted by John on April 27, 2001 5:57 AM

Thanks Jeff

This works.