Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90161

Userform opens new workbook but is behind old workbook on screen

$
0
0

I have a workbook lets call it workbook A with different buttons on it. One of the buttons launches a UserForm to ask the user for some information to be inputted into a separate workbook. After the user clicks OK if open up workbook B and inputs the data. The problem is the user has to minimize workbook A to start working on workbook B.

I have tried

ActiveWindow.Visible = False

and also

Windows("MyWorkbook").Visible = False

These make the window disappear completely. I just want to minimize the window. I have also tried recording what happens when you minimize but nothing is recorded for minimizing a window. Any help is much appreciated.


Viewing all articles
Browse latest Browse all 90161

Trending Articles