Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Long running operations

Hello

I have an Excel-file that interacts with MATLAB, some of the interactions
can take quite a long time, when that happens a window comes up saying that
"Microsoft Office Excel is waiting for another application to complete an OLE
action. I understand that I should be able to get rid of this window by
setting Application.DisplayAlerts to false during the operation.

However instead I would like to show a model window of my own (without any
buttons or such) with a message like "please wait" and then when the
operation is completed I remove the window. Is that possible?

AFAIK if I use a normal form and run Show() then I will not be able to close
it from the code that created it, that have to be done in code belonging to
the form, is that correct?

--
Erik Wikström
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default Long running operations

Hi Erick,

Follow this structure

Sub StartMacro
userform.show
End sub

Sub userform_Activate
Call main
Unload me
end sub

Sub Main
'do something
End sub

Regards

JY

"Erik Wikström" wrote in message
...
Hello

I have an Excel-file that interacts with MATLAB, some of the interactions
can take quite a long time, when that happens a window comes up saying
that
"Microsoft Office Excel is waiting for another application to complete an
OLE
action. I understand that I should be able to get rid of this window by
setting Application.DisplayAlerts to false during the operation.

However instead I would like to show a model window of my own (without any
buttons or such) with a message like "please wait" and then when the
operation is completed I remove the window. Is that possible?

AFAIK if I use a normal form and run Show() then I will not be able to
close
it from the code that created it, that have to be done in code belonging
to
the form, is that correct?

--
Erik Wikström



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
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo Max Loger Excel Discussion (Misc queries) 0 June 14th 11 04:30 PM
Long Long Long Nested If Function sed Excel Discussion (Misc queries) 4 December 9th 09 06:44 PM
Long time to open spreadsheet (running Excel 2007) Gollom Excel Discussion (Misc queries) 0 March 28th 07 12:59 AM
Status bar (or similar) to appear whilst running a long macro Ant Excel Discussion (Misc queries) 8 November 11th 05 09:21 AM
Long running macro and screen update James[_39_] Excel Programming 5 October 13th 05 01:39 PM


All times are GMT +1. The time now is 09:44 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"