Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KT KT is offline
external usenet poster
 
Posts: 47
Default Can macro display a diff't screen while it runs until it stops?

Is there coding I can add to a macro that will change the display to a
different screen (such as the desktop or something) once the macro starts
running and then, when it's finished, go back to the worksheet it started on?
I know there's Worksheet.Activate but I'm looking for something a little
different.
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default Can macro display a diff't screen while it runs until it stops?

one way

Application.WindowState = xlMinimized

do your thing
Application.WindowState = xlNormal



--
Greetings from New Zealand
Bill K

"KT" wrote in message
...
Is there coding I can add to a macro that will change the display to a
different screen (such as the desktop or something) once the macro starts
running and then, when it's finished, go back to the worksheet it started
on?
I know there's Worksheet.Activate but I'm looking for something a little
different.
Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Can macro display a diff't screen while it runs until it stops?

You can hide Excel...

Sub stuff()
On Error GoTo ErrorHandler
Application.Visible = False
'Your Code here
ErrorHandler:
Application.Visible = True
End Sub

You should have the error handler with this (similar to above). It would be
a bad thing if it ran into a problem and just never came back...
--
HTH...

Jim Thomlinson


"KT" wrote:

Is there coding I can add to a macro that will change the display to a
different screen (such as the desktop or something) once the macro starts
running and then, when it's finished, go back to the worksheet it started on?
I know there's Worksheet.Activate but I'm looking for something a little
different.
Thanks!

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
Turning off screen update while macro runs dancingflames Excel Programming 1 November 4th 05 10:39 PM
Keep display steady while macro runs Salman[_2_] Excel Programming 3 November 6th 03 04:30 AM
Display a message whilst a macro runs steve Excel Programming 0 October 29th 03 07:37 PM
Display a message whilst a macro runs Tom Ogilvy Excel Programming 0 October 29th 03 12:43 PM
Flickering of the Screen when the Macro runs. Neeraja Excel Programming 3 October 28th 03 10:40 PM


All times are GMT +1. The time now is 11:52 PM.

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

About Us

"It's about Microsoft Excel"