+ Reply to Thread
Results 1 to 2 of 2

Function-excelvba

  1. #1
    Forum Contributor
    Join Date
    02-12-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    261

    Post Function-excelvba

    Hi All


    My Query is about a function in excel.

    If i want to write a function in excel , i know it should be written on the module level. But i am unable to understand how that function
    should work on a sheet. How do we link that function to a range in a sheet.

    For example i write a function something like below. How should this be linked to a sheet so that whenver i enter numbers from a1:a10 and b1:b10
    the result should be showing in the respective columns C. Considering everything is on sheet1.

    What will be the event on sheet1 where i need to link this function

    MANY THANX IN ADVANCE

    Please Login or Register  to view this content.
    Last edited by grkchakri; 07-14-2012 at 12:53 AM. Reason: missing information

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Function-excelvba

    Hi grkcharkri,

    You have created a User Defined Function or UDF. Because you have put it in a MODULE it will work on any worksheet. See the example that uses your function.

    read more at http://www.decisionmodels.com/calcsecretsj.htm or search the net.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

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