commandbutton code

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

Guest

any can give me codes for the commandbutton .... i ahve simple form then i
put two command button ( commandbutton1 for save and commandbtton2 is for
exit) what i want is if i click the save it save all the changes made inside
of the workbook and if I click the exit it will close the workbook.

thanks a lot .....
 
Hi
for saving
activeworkbook.save

for closing
activeworkbook.close
 

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