将工作表移动到新窗口

我想知道在程序的一个实例已经运行的情况下打开一个新文档是否有可能避免MS Excel 2010的一般行为。 基本上会发生什么是程序在当前环境中打开新的电子表格,作为一个新的工作簿。

我想要做的是设置为默认(或find一个简单快捷的方法来做到这一点与键盘快捷键/macros)在MS Excel的新实例中打开一个新的工作簿。

最后的目标是让我在一个显示器上保留一个工作簿,并在第二个显示器中移动第二个(我正在使用两个显示器工作)。

是。

如果你想在VBA代码中这样做,那么你可以使用下面的代码:

Sub OpenInNewInstance() Dim xlApp As Application Set xlApp = CreateObject("Excel.Application") xlApp.Workbooks.Add xlApp.Visible = True End Sub 

对于没有VBA的解决scheme,您可以打开两个excel实例,并在每个实例中从文件菜单打开一个文档。

我在SuperUser上发现了在Excel的新实例中打开所有工作表的方法

 In Excel 2003, go to Tools -> Options -> General tab. Make sure the option, 'Ignore other applications' is checked. In Excel 2007 & 2010, Click the Office button -> Excel Options -> Advanced. Under General, check 'Ignore other applications that use Dynamic Data Exchange'. 

https://superuser.com/questions/21602/open-excel-files-in-new-window


或者你可以做一个registry编辑(可能要先备份)

 strart - run - regedit: Left column HKEY_CLASSES_ROOT/Excel.Sheet.8/shell/Open/commend: Right column {adding (space)"%1"} Double Click on (Default) and write - "C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" /e "%1" Right Click on Command – choose "rename" and add something to the name - for example 2 (commend2). Left column HKEY_CLASSES_ROOT/Excel.Sheet.8/shell/Open/ddeexec: Right Click on the folder ddeexec and choose "rename" and add something to the name - for example 2 (ddeexec2) Left column HKEY_CLASSES_ROOT/Excel.Sheet.12/shell/Open/commend: Right column {adding (space)"%1"} Double Click on (Default) and write - "C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" /e "%1" Right Click on Command – choose "rename" and add something to the name - for example 2 (commend2). 

也取决于您使用的是什么版本的Excel,在“ View菜单中可能会有一个选项来打开一个新窗口。

资源

    Interesting Posts