View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kevin Kevin is offline
external usenet poster
 
Posts: 504
Default Moving from one Excel File to Another

I have an application I am working on that has a Menu which is contained in
an Excel Workbook with supporting VBA and no data. I open this workbook then
select one of the following two options:

1. Choose to open a new workbook. - This option creates a new workbook based
on a template I have created.
2. Choose to open an existing workbook.

This works fine. The problem I am having is after I work in either a new
workbook (and save it) or make changes in an existing wqorkbook (and save
Changes) I may want to return to the menu. Toward this end I have a button on
an input form to "Return to Menu". When I execute the code behind this button
it opens the menu workbook again and then closes the workbook containing the
data. The menu form appears, but the form from the data workbook does not
disappear. The workboiok is closed so I suspect it is a problem with
redrawing the screen. The only command I find in VBA which appears to address
this issue applies to the Form object and does nothing to resolve this issue.

Any ideas? Is the an API call that will do it and if so what would the code
look like?

Any help would be greatly appreciated!

Kevin