Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Minimizing a workbook or worksheet

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Minimizing a workbook or worksheet

Amil,

Try this

activewindow.WindowState = xlMinimized

--
HTH

Bob Phillips

"Amil" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Minimizing a workbook or worksheet

With ActiveWindow
.WindowState = xlMinimized
End with

or for the application

application.WindowState = xlMinimized


to restore xlNormal

--
Regards,
Tom Ogilvy


"Amil" wrote in message
...
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?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Minimizing a workbook or worksheet

Worked very well. Thank you.

"Bob Phillips" wrote:

Amil,

Try this

activewindow.WindowState = xlMinimized

--
HTH

Bob Phillips

"Amil" wrote in message
...
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?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
minimizing problem Dave Excel Discussion (Misc queries) 5 June 7th 05 06:29 PM
Minimizing Excel from a Macro Craig[_15_] Excel Programming 1 May 5th 04 01:34 PM
Minimizing application from VBA Steve Excel Programming 2 November 6th 03 03:46 PM
Minimizing a user form Sudhakar[_2_] Excel Programming 1 September 4th 03 11:29 PM
Minimizing a Form Khai[_2_] Excel Programming 1 July 24th 03 08:44 PM


All times are GMT +1. The time now is 02:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"