Results 1 to 4 of 4

passing variable?

Threaded View

  1. #1
    Registered User
    Join Date
    07-06-2008
    Location
    romania
    Posts
    1

    passing variable?

    Hello!
    I want to make a udf function in VBA to count something from a range of cells. This is the code:
    Function NrOreProgramNormal(domeniu As Range)
    ActiveCell.Formula = "=COUNTIF(" & domeniu & " ,""P"")"
    End Function
    I get the error "#VALUE!" when I enter the formula (like this: =NrOreProgram(B2:N2) ) in a cell.Can you help me please? Thank you for your time!
    Last edited by leroiv; 07-06-2008 at 04:32 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1