J
JohnZ
In an Open event subroutine for "workbook1", I open a second workbook
"workbook2" that is defined by label "book2" in a "workbook1" worksheet with
the following statements:
Dim wkbook2 as object
Set wkbook2 = Range("book2")
Workbook.Open (wkbook2)
Question: How do I minimize (xlMinimize) the window for the just opened
"workbook2" using the label "book2" defined in "workbook1"?
Workbooks(wkbook2).ActiveWindow.WindowState = xlMinimized
Above statement does not work.
"workbook2" that is defined by label "book2" in a "workbook1" worksheet with
the following statements:
Dim wkbook2 as object
Set wkbook2 = Range("book2")
Workbook.Open (wkbook2)
Question: How do I minimize (xlMinimize) the window for the just opened
"workbook2" using the label "book2" defined in "workbook1"?
Workbooks(wkbook2).ActiveWindow.WindowState = xlMinimized
Above statement does not work.