For Each Z In Windows
If Z.Caption Like "活頁簿1.xlsm" Then
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
Z.Left = Left1
Z.Top = Top1
Z.Width = width1
Z.Height = height1
ElseIf Z.Caption Like "活頁簿2.xlsm" Then
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
Z.Left = Left1 + width1
Z.Top = Top1
Z.Width = width1
Z.Height = height1
End If
Next
End Sub作者: av8d 時間: 2023-12-6 21:19