Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default worksheet functions

I am trying to run a worksheet function.
MyPik="Bob"
MyNameCount = Application.WorksheetFunction = "=countif
(A2:A100,MyPik)"
I get an error. If I use the literal "Bob" I get an
error.

What have done wrong?

Gmet
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default worksheet functions

Hi
try:
MyNameCount =
Application.WorksheetFunction.countif(range("A2:A1 00"),MyPik)


--
Regards
Frank Kabel
Frankfurt, Germany


Gmet wrote:
I am trying to run a worksheet function.
MyPik="Bob"
MyNameCount = Application.WorksheetFunction = "=countif
(A2:A100,MyPik)"
I get an error. If I use the literal "Bob" I get an
error.

What have done wrong?

Gmet


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
Help with worksheet functions Angeline Excel Discussion (Misc queries) 2 October 11th 06 11:19 PM
IF AND OR Worksheet Functions ExcelBob Excel Discussion (Misc queries) 2 May 5th 06 11:23 AM
UDF x worksheet functions Rogerio Takejame Excel Worksheet Functions 3 March 9th 06 08:11 PM
Worksheet Functions Nadji New Users to Excel 3 June 13th 05 05:21 PM
Worksheet functions in VB Costas Excel Programming 3 August 29th 04 03:21 PM


All times are GMT +1. The time now is 03:35 AM.

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"