Minimizing a workbook or worksheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've implemented one of the progress bars suggested in the threads here. I
am looping through a named range and as the process is running, the rows are
changing as expected. What I need is a way to minimize the current sheet or
workbook (setting Visible=false breaks my code). I searched the VBA help for
a way to minimize the sheet but cant find it. How can minimize the sheet or
workbook?
 
With ActiveWindow
.WindowState = xlMinimized
End with

or for the application

application.WindowState = xlMinimized


to restore xlNormal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top