#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default msgbox

Hi All,

I have 10 columns and i am running macro , Macro part is ok at the end
i need to add some msgbox.

how should i do ....I need msgbox to display result using counta
formula for a Range ("B:B").

Suppose if range("B:B") has 100 values or Text then it should display
"you have 100 to work"

Similarly is it possible to add countif function in msgbox -
countif(Range("A:D"),"ok")

Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default msgbox

Try something like

myCount = application.COUNTA("B1:B1000")
Msgbox "You have " & myCount & " goodies"

best wishes
--
www.stfx.ca/people/bliengme


"muddan madhu" wrote:

Hi All,

I have 10 columns and i am running macro , Macro part is ok at the end
i need to add some msgbox.

how should i do ....I need msgbox to display result using counta
formula for a Range ("B:B").

Suppose if range("B:B") has 100 values or Text then it should display
"you have 100 to work"

Similarly is it possible to add countif function in msgbox -
countif(Range("A:D"),"ok")

Thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default msgbox

it is giving count as 1 ......

I changed mycount = application.counta(range("B1:B100"))

I got the result......


Thanks Bernard.....

What about using countif in msgbox


On Apr 14, 8:35*am, Bernard Liengme
wrote:
Try something like

myCount = application.COUNTA("B1:B1000")
Msgbox "You have " & myCount & " goodies"

best wishes
--www.stfx.ca/people/bliengme



"muddan madhu" wrote:
Hi All,


I have 10 columns and i am running macro , Macro part is ok at the end
i need to add some msgbox.


how should i do ....I need msgbox to display result using counta
formula for a Range ("B:B").


Suppose if range("B:B") has 100 values or Text then it should display
"you have 100 to work"


Similarly is it possible to add countif function in msgbox -
countif(Range("A:D"),"ok")


Thanks in advance- Hide quoted text -


- Show quoted text -


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 peyman Excel Discussion (Misc queries) 5 October 4th 07 09:56 PM
MsgBox bumper338 Excel Discussion (Misc queries) 1 December 22nd 06 11:32 PM
MsgBox CC Excel Discussion (Misc queries) 4 May 5th 06 05:45 PM
msgbox flow23 Excel Discussion (Misc queries) 0 January 10th 06 03:25 PM
Msgbox Wildman Excel Worksheet Functions 1 April 26th 05 04:57 AM


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