Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default What is Wrong with This?

Sub Test()
a = WorksheetFunction.CountIf(Range("tim").Range("jeif h", "sdipriep",
"tim", "jppks"))
MsgBox a
End Sub

I'm getting a compile error.

Thanks
Todd

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default What is Wrong with This?

hi Todd,

putting a comma instead a point

a = WorksheetFunction.CountIf(Range("tim"),Range("jeif h",
"sdipriep", "tim", "jppks"))

isabelle

Le 2013-12-23 18:13, Tod a écrit :
Sub Test()
a = WorksheetFunction.CountIf(Range("tim").Range("jeif h",
"sdipriep", "tim", "jppks"))
MsgBox a
End Sub

I'm getting a compile error.

Thanks
Todd

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default What is Wrong with This?

That still does not work. Compile error?
Thanks


"isabelle" wrote in message ...

hi Todd,

putting a comma instead a point

a = WorksheetFunction.CountIf(Range("tim"),Range("jeif h",
"sdipriep", "tim", "jppks"))

isabelle

Le 2013-12-23 18:13, Tod a écrit :
Sub Test()
a = WorksheetFunction.CountIf(Range("tim").Range("jeif h",
"sdipriep", "tim", "jppks"))
MsgBox a
End Sub

I'm getting a compile error.

Thanks
Todd


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default What is Wrong with This?

Never mind. I did not realize that CountIf and Range functions are called
from ActiveSheet.
thanks

"isabelle" wrote in message ...

hi Todd,

putting a comma instead a point

a = WorksheetFunction.CountIf(Range("tim"),Range("jeif h",
"sdipriep", "tim", "jppks"))

isabelle

Le 2013-12-23 18:13, Tod a écrit :
Sub Test()
a = WorksheetFunction.CountIf(Range("tim").Range("jeif h",
"sdipriep", "tim", "jppks"))
MsgBox a
End Sub

I'm getting a compile error.

Thanks
Todd


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
What do I do wrong [Excuses pushing the wrong key combination earlier] Vsn Excel Programming 7 November 8th 09 09:12 PM
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
What am I doing wrong? TimN Excel Programming 2 November 3rd 06 08:18 PM
What am I doing wrong? [email protected] Excel Programming 7 August 24th 06 12:09 PM
what went wrong?! simon10810 Excel Programming 2 June 12th 06 10:46 AM


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