The Workbooks property is a member of the Application object and returns a reference to the Workbook object specified by the index value given in the parentheses. : Workbook « Excel « VBA / Excel / Access / Word
The Workbooks property is a member of the Application object and returns a reference to the Workbook object specified by the index value given in the parentheses.
Sub changePro()
Workbooks(1).Windows(1).WindowState = xlNormal
Workbooks(1).Windows(1).Width = 500
Workbooks(1).Windows(1).Height = 300
End Sub