Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default How to stop 'Egg Timer'

I want to stop the (part of the program that presents the) 'Egg Timer'
symbol when I run my macro.

If the user clicks on cell "b3" when it already contains a Part Number, I
want a message Box to appear. The following code does the trick, except that
the Egg Timer symbol appears until the OK button is clicked in the MsgBox.

If IsError(Range("B3").Value) = False Then GoTo DoubleClick
(If "True" code snipped)

DoubleClick:
Sheets("Main Page").Select
MsgBox "Part Number has already been assigned."
Range("B2").Select
Exit Sub

What am I missing?

Thanks.

Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default How to stop 'Egg Timer'

Your program is "stepping on itself", put a DoEvents between the sheet select
and the message box, that should fix you up.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"MichaelRobert" wrote:

I want to stop the (part of the program that presents the) 'Egg Timer'
symbol when I run my macro.

If the user clicks on cell "b3" when it already contains a Part Number, I
want a message Box to appear. The following code does the trick, except that
the Egg Timer symbol appears until the OK button is clicked in the MsgBox.

If IsError(Range("B3").Value) = False Then GoTo DoubleClick
(If "True" code snipped)

DoubleClick:
Sheets("Main Page").Select
MsgBox "Part Number has already been assigned."
Range("B2").Select
Exit Sub

What am I missing?

Thanks.

Mike

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default How to stop 'Egg Timer'

You are missing the line...
Application.Cursor = xlDefault
--
Jim Cone
Portland, Oregon USA



"MichaelRobert"
wrote in message
I want to stop the (part of the program that presents the) 'Egg Timer'
symbol when I run my macro.

If the user clicks on cell "b3" when it already contains a Part Number, I
want a message Box to appear. The following code does the trick, except that
the Egg Timer symbol appears until the OK button is clicked in the MsgBox.

If IsError(Range("B3").Value) = False Then GoTo DoubleClick
(If "True" code snipped)

DoubleClick:
Sheets("Main Page").Select
MsgBox "Part Number has already been assigned."
Range("B2").Select
Exit Sub

What am I missing?
Thanks.
Mike
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default How to stop 'Egg Timer'

John:

Many thanks. That did the trick. Now I need to understand why I had created
the problem, and how DoEvents fixed it! But it is fun to learn these things.

Mike

"MichaelRobert" wrote:

I want to stop the (part of the program that presents the) 'Egg Timer'
symbol when I run my macro.

If the user clicks on cell "b3" when it already contains a Part Number, I
want a message Box to appear. The following code does the trick, except that
the Egg Timer symbol appears until the OK button is clicked in the MsgBox.

If IsError(Range("B3").Value) = False Then GoTo DoubleClick
(If "True" code snipped)

DoubleClick:
Sheets("Main Page").Select
MsgBox "Part Number has already been assigned."
Range("B2").Select
Exit Sub

What am I missing?

Thanks.

Mike

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
timer mike allen[_2_] Excel Programming 3 March 16th 07 11:05 PM
Stopping a Timer / Running a timer simultaneously on Excel Paul23 Excel Discussion (Misc queries) 1 March 10th 06 12:08 PM
How do I stop other circles in other cells to stop selecting? stauff Excel Worksheet Functions 2 October 29th 04 09:02 PM
How do I stop other circles in other boxes to stop selecting? stauff Excel Worksheet Functions 1 October 28th 04 10:27 PM
stop timer choice[_2_] Excel Programming 1 October 25th 04 12:29 AM


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