View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default Add Workbook As Seperate Window

If you give the TargetWorkbook a name and then save it, it should then be a
separate window from the workbook that was active when the new one was
created. Otherwise, I would think maybe opening a secon instance of Excel
might be what you are after.

"George Lee" wrote:

I would like to open a new workbook in a separate window. I have set up Excel
to do this when you double click a file to open but when doing it
programmatically, it always opens inside the activeworkbook. How can a new
workbook be added in a separate window? Excel 2003/Windows XP.

Dim targetWorkbook As Workbook
Set targetWorkbook = Application.Workbooks.Add