Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default MsgBox without buttons

As my macro begins to execute, I need to display a pop-up window that simply
says "One moment please..." When the macro is near the end of its execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons. But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default MsgBox without buttons

No can do on the message box... My preference for this kind of thing is to
have a sheet with "Processing... One moment please." in big bold letters.
Switch to this sheet at the beginning of your macro and back to your original
sheet at the end. Doing this you can get fancy with the colours, add any
extra text you might want and even add some check boxes that get checked as
specific sections of the macro complete to give the user the feeling that
something productive is going on...
--
HTH...

Jim Thomlinson


"Bob" wrote:

As my macro begins to execute, I need to display a pop-up window that simply
says "One moment please..." When the macro is near the end of its execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons. But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default MsgBox without buttons

I don't know of any MsgBox way that has no buttons or won't awat closing
before proceeding. One way developers usually handle it is to create a
UserForm as the popup dialog. The VBA code shows the userform. The
userform_Activate code calls further code to run. When the code is done, it
Unloads the form.

My preference is to use the StatusBar due to it's non-invasiveness. One of
the downsides to using a form is it can get in the way of stepping through
your code because of its modality.



"Bob" wrote in message
...
As my macro begins to execute, I need to display a pop-up window that
simply
says "One moment please..." When the macro is near the end of its
execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons.
But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default MsgBox without buttons

Jim,
Thanks for the suggestion. I was really hoping to be able to display some
sort of a pop-up box, but your method is one that I didn't think of.
Thanks again,
Bob


"Jim Thomlinson" wrote:

No can do on the message box... My preference for this kind of thing is to
have a sheet with "Processing... One moment please." in big bold letters.
Switch to this sheet at the beginning of your macro and back to your original
sheet at the end. Doing this you can get fancy with the colours, add any
extra text you might want and even add some check boxes that get checked as
specific sections of the macro complete to give the user the feeling that
something productive is going on...
--
HTH...

Jim Thomlinson


"Bob" wrote:

As my macro begins to execute, I need to display a pop-up window that simply
says "One moment please..." When the macro is near the end of its execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons. But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default MsgBox without buttons

On Thu, 30 Aug 2007 11:16:01 -0700, Bob
wrote:

As my macro begins to execute, I need to display a pop-up window that simply

just make a small form, close it after a few seconds , I do this as
splash screen on the opening of some of my sheets...



  #6   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default MsgBox without buttons

John,
Thanks for the suggestion! I will give it a try.
Bob


"John in Wembley" wrote:

On Thu, 30 Aug 2007 11:16:01 -0700, Bob
wrote:

As my macro begins to execute, I need to display a pop-up window that simply

just make a small form, close it after a few seconds , I do this as
splash screen on the opening of some of my sheets...


  #7   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default MsgBox without buttons

Thanks for the suggestion! I will give it a try.
Bob


"-" wrote:

I don't know of any MsgBox way that has no buttons or won't awat closing
before proceeding. One way developers usually handle it is to create a
UserForm as the popup dialog. The VBA code shows the userform. The
userform_Activate code calls further code to run. When the code is done, it
Unloads the form.

My preference is to use the StatusBar due to it's non-invasiveness. One of
the downsides to using a form is it can get in the way of stepping through
your code because of its modality.



"Bob" wrote in message
...
As my macro begins to execute, I need to display a pop-up window that
simply
says "One moment please..." When the macro is near the end of its
execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons.
But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.




  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default MsgBox without buttons

i make a userform with only a label on it, i center it and make it as wide as
the form.
then when my first macro starts i use something like this:

With UserForm1
.Caption = "Processing Scanner Data For " &
Format(Worksheets("Date").Range("B2"), "MMMM dd yyyy")
.Show
End With
DoEvents

then, when the 2nd macro i called:

UserForm1.Label1.Caption = "Adding Decipher Sheet Information"
DoEvents

when the 3rd macro is called:

UserForm1.Label1.Caption = "Summarizing Data By Line Number"
DoEvents


and when the code is done:

Unload UserForm1




--


Gary


"Bob" wrote in message
...
John,
Thanks for the suggestion! I will give it a try.
Bob


"John in Wembley" wrote:

On Thu, 30 Aug 2007 11:16:01 -0700, Bob
wrote:

As my macro begins to execute, I need to display a pop-up window that simply

just make a small form, close it after a few seconds , I do this as
splash screen on the opening of some of my sheets...




  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default MsgBox without buttons

when i use a form to display status and need to step through the code, i just
type unload userform1 in the immediate window. most of my clients don't know
what the status bar is for, so they never look at it.

just my way of doing it.

--


Gary


<- wrote in message ...
I don't know of any MsgBox way that has no buttons or won't awat closing before
proceeding. One way developers usually handle it is to create a UserForm as the
popup dialog. The VBA code shows the userform. The userform_Activate code calls
further code to run. When the code is done, it Unloads the form.

My preference is to use the StatusBar due to it's non-invasiveness. One of the
downsides to using a form is it can get in the way of stepping through your
code because of its modality.



"Bob" wrote in message
...
As my macro begins to execute, I need to display a pop-up window that simply
says "One moment please..." When the macro is near the end of its execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons. But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.





  #10   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default MsgBox without buttons

Don't get me wrong, I like the userform idea because it's obvious and kind
of cool.

However, I had the very unpleasant task of inheriting a humongous project
from a developer who never got it to work.

There were tens of thousands of lines of code in it, and no code-commenting.

The developer tied *everything* into a modal userform with incrementing
status lines, emulating the look and feel of Windows.

Great, but first of all, the project didn't work. Worse, if I made the form
non-modal, or tried to disable it, NONE of the code would work. It was
completely dependent on the form.

I have never experienced a client that didn't know what a status bar was
for. Office apps use them all the time. I agree they are not as obvious as
forms, but there is certainly much less overhead in statusbars then
userforms.

Just my take. (and I am not inexperienced).


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
when i use a form to display status and need to step through the code, i
just type unload userform1 in the immediate window. most of my clients
don't know what the status bar is for, so they never look at it.

just my way of doing it.

--


Gary


<- wrote in message ...
I don't know of any MsgBox way that has no buttons or won't awat closing
before proceeding. One way developers usually handle it is to create a
UserForm as the popup dialog. The VBA code shows the userform. The
userform_Activate code calls further code to run. When the code is done,
it Unloads the form.

My preference is to use the StatusBar due to it's non-invasiveness. One
of the downsides to using a form is it can get in the way of stepping
through your code because of its modality.



"Bob" wrote in message
...
As my macro begins to execute, I need to display a pop-up window that
simply
says "One moment please..." When the macro is near the end of its
execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using
a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons.
But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.









  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default MsgBox without buttons

yep, it's always worse with someone else's code.

--


Gary


<- wrote in message ...
Don't get me wrong, I like the userform idea because it's obvious and kind of
cool.

However, I had the very unpleasant task of inheriting a humongous project from
a developer who never got it to work.

There were tens of thousands of lines of code in it, and no code-commenting.

The developer tied *everything* into a modal userform with incrementing status
lines, emulating the look and feel of Windows.

Great, but first of all, the project didn't work. Worse, if I made the form
non-modal, or tried to disable it, NONE of the code would work. It was
completely dependent on the form.

I have never experienced a client that didn't know what a status bar was for.
Office apps use them all the time. I agree they are not as obvious as forms,
but there is certainly much less overhead in statusbars then userforms.

Just my take. (and I am not inexperienced).


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
when i use a form to display status and need to step through the code, i just
type unload userform1 in the immediate window. most of my clients don't know
what the status bar is for, so they never look at it.

just my way of doing it.

--


Gary


<- wrote in message ...
I don't know of any MsgBox way that has no buttons or won't awat closing
before proceeding. One way developers usually handle it is to create a
UserForm as the popup dialog. The VBA code shows the userform. The
userform_Activate code calls further code to run. When the code is done, it
Unloads the form.

My preference is to use the StatusBar due to it's non-invasiveness. One of
the downsides to using a form is it can get in the way of stepping through
your code because of its modality.



"Bob" wrote in message
...
As my macro begins to execute, I need to display a pop-up window that
simply
says "One moment please..." When the macro is near the end of its
execution,
I then need to remove the pop-up window.

Unless there is a better way to accomplish this, I was thinking of using a
MsgBox, except I don't want (or need) the MsgBox to contain any buttons.
But
I don't know how to do this.

Any help would be greatly appreciated. Thanks.








  #12   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default MsgBox without buttons

Gary,

To practice, I created a single UserForm with only a Label in it. I left
the default colors for the UserForm and Label alone. But when I execute the
code to display the UserForm, all I see is a white box with a blue border and
a blue caption area. I don't see any text!

Any clue as to what I either did wrong or missed?

Thanks,
Bob


"Gary Keramidas" wrote:

i make a userform with only a label on it, i center it and make it as wide as
the form.
then when my first macro starts i use something like this:

With UserForm1
.Caption = "Processing Scanner Data For " &
Format(Worksheets("Date").Range("B2"), "MMMM dd yyyy")
.Show
End With
DoEvents

then, when the 2nd macro i called:

UserForm1.Label1.Caption = "Adding Decipher Sheet Information"
DoEvents

when the 3rd macro is called:

UserForm1.Label1.Caption = "Summarizing Data By Line Number"
DoEvents


and when the code is done:

Unload UserForm1




--


Gary


"Bob" wrote in message
...
John,
Thanks for the suggestion! I will give it a try.
Bob


"John in Wembley" wrote:

On Thu, 30 Aug 2007 11:16:01 -0700, Bob
wrote:

As my macro begins to execute, I need to display a pop-up window that simply
just make a small form, close it after a few seconds , I do this as
splash screen on the opening of some of my sheets...





  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default MsgBox without buttons

post the code you have,

--


Gary


"Bob" wrote in message
...
Gary,

To practice, I created a single UserForm with only a Label in it. I left
the default colors for the UserForm and Label alone. But when I execute the
code to display the UserForm, all I see is a white box with a blue border and
a blue caption area. I don't see any text!

Any clue as to what I either did wrong or missed?

Thanks,
Bob


"Gary Keramidas" wrote:

i make a userform with only a label on it, i center it and make it as wide as
the form.
then when my first macro starts i use something like this:

With UserForm1
.Caption = "Processing Scanner Data For " &
Format(Worksheets("Date").Range("B2"), "MMMM dd yyyy")
.Show
End With
DoEvents

then, when the 2nd macro i called:

UserForm1.Label1.Caption = "Adding Decipher Sheet Information"
DoEvents

when the 3rd macro is called:

UserForm1.Label1.Caption = "Summarizing Data By Line Number"
DoEvents


and when the code is done:

Unload UserForm1




--


Gary


"Bob" wrote in message
...
John,
Thanks for the suggestion! I will give it a try.
Bob


"John in Wembley" wrote:

On Thu, 30 Aug 2007 11:16:01 -0700, Bob
wrote:

As my macro begins to execute, I need to display a pop-up window that
simply
just make a small form, close it after a few seconds , I do this as
splash screen on the opening of some of my sheets...







  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default MsgBox without buttons

I'm having the same issue with the box popping up but only the boarder shows,
the middle is all white. Here is my code:

Private Sub Workbook_Open()

Sheets("Summary").Visible = xlSheetVisible

If ThisWorkbook.ReadOnly True Then
Call ShowDialog
End If

Application.ScreenUpdating = False

Sheets("2008").Visible = xlSheetVisible
Sheets("Invoices").Visible = xlSheetVisible
Sheets("MasterList").Visible = xlSheetHidden
Sheets("Enable Macros").Visible = xlSheetHidden


Application.ScreenUpdating = True

End Sub
Sub ShowDialog()
Pleasewait.Show
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)

Sheets("Enable Macros").Visible = xlSheetVisible
Sheets("Summary").Visible = xlSheetHidden
Sheets("2008").Visible = xlSheetHidden
Sheets("Invoices").Visible = xlSheetHidden

End Sub

For the userbox:
Private Sub UserForm_Activate()

Dim wbk As Workbook

Application.DisplayAlerts = False

Set wbk = Workbooks.Open(Filename:="MasterList.xls", _
ReadOnly:=True, UpdateLinks:=True, _
Password:="xxxxx")
With wbk
.Close
End With

Set wbk = Nothing

Pleasewait.Hide

End Sub

I created the userbox with "Please wait while actuals are being updated" in
the center, but that isn't showing.

Thanks,
Chris

"Gary Keramidas" wrote:

post the code you have,

--


Gary


"Bob" wrote in message
...
Gary,

To practice, I created a single UserForm with only a Label in it. I left
the default colors for the UserForm and Label alone. But when I execute the
code to display the UserForm, all I see is a white box with a blue border and
a blue caption area. I don't see any text!

Any clue as to what I either did wrong or missed?

Thanks,
Bob


"Gary Keramidas" wrote:

i make a userform with only a label on it, i center it and make it as wide as
the form.
then when my first macro starts i use something like this:

With UserForm1
.Caption = "Processing Scanner Data For " &
Format(Worksheets("Date").Range("B2"), "MMMM dd yyyy")
.Show
End With
DoEvents

then, when the 2nd macro i called:

UserForm1.Label1.Caption = "Adding Decipher Sheet Information"
DoEvents

when the 3rd macro is called:

UserForm1.Label1.Caption = "Summarizing Data By Line Number"
DoEvents


and when the code is done:

Unload UserForm1




--


Gary


"Bob" wrote in message
...
John,
Thanks for the suggestion! I will give it a try.
Bob


"John in Wembley" wrote:

On Thu, 30 Aug 2007 11:16:01 -0700, Bob
wrote:

As my macro begins to execute, I need to display a pop-up window that
simply
just make a small form, close it after a few seconds , I do this as
splash screen on the opening of some of my sheets...








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
msgbox with no buttons jkitzy Excel Programming 1 December 30th 04 02:58 AM
How can I customize the buttons in a MSGBOX? psdeckers Excel Programming 3 November 4th 04 08:07 AM
Naming of MsgBox Buttons Chuckles123[_6_] Excel Programming 1 October 3rd 04 10:42 PM
Naming of MsgBox Buttons Ivan F Moala[_14_] Excel Programming 2 October 3rd 04 12:54 PM
msgbox buttons jmikerea Excel Programming 4 May 28th 04 07:16 AM


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