Is there a way to move an already open spreadsheet to another instance of Excel?
I'm running Excel 2007.
Thanks in advance!
Sub NewInstance()
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbooks.Open ("W:\MyDir\MyFile.xls")
End Sub
This should work...
Code:Sub NewInstance() Dim sCurFile As String sCurFile = ActiveWorkbook.FullName ActiveWorkbook.Close Set objExcel = CreateObject("Excel.Application") objExcel.Visible = True objExcel.Workbooks.Open (sCurFile) End Sub