Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Annoying Pop up box in function


well, a popup box in a function is like when running a function, say
"IF" function..

a input box will pop up asking for "Logical test", "Value if true", an
"Value if false"

mine only has one input box which is labelled (XX)... and the proble
is as mentioned abov

--
silves
-----------------------------------------------------------------------
silvest's Profile: http://www.excelforum.com/member.php...fo&userid=1466
View this thread: http://www.excelforum.com/showthread.php?threadid=26731

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Annoying Pop up box in function

Okay, I get it now. You're using Insert Function from the menu.

My advice is to remove the message boxes from your function. If you want to
show a descriptive error message, then make your function return that error
message

Function ConvertDate(lInput as Long) as Variant
Select Case lInput
Case Is < 1000
ConvertDate = "Error: Input too small"
'Other cases
End Select
End Function

If you really want message boxes, the Len test worked for me

Function ConvertDate(xx)

If Len(xx) 4 Then
Select Case xx
Case Is < 1000
MsgBox "blah"
End Select
End If

End Function

did not show a message box as I was typing.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"silvest" wrote in message
...

well, a popup box in a function is like when running a function, say:
"IF" function..

a input box will pop up asking for "Logical test", "Value if true", and
"Value if false"

mine only has one input box which is labelled (XX)... and the problem
is as mentioned above


--
silvest
------------------------------------------------------------------------
silvest's Profile:

http://www.excelforum.com/member.php...o&userid=14662
View this thread: http://www.excelforum.com/showthread...hreadid=267318



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
Annoying Pop up box in function silvest[_8_] Excel Programming 2 October 8th 04 01:31 AM
Annoying Pop up box in function silvest[_11_] Excel Programming 1 October 7th 04 07:11 PM
Annoying Pop up box in function silvest[_10_] Excel Programming 0 October 7th 04 05:38 PM
Annoying Pop up box in function silvest[_9_] Excel Programming 0 October 7th 04 05:09 PM
Annoying bug. Shunt Excel Programming 1 August 7th 03 02:05 PM


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