+ Reply to Thread
Results 1 to 3 of 3

About using a Sub

  1. #1
    Registered User
    Join Date
    05-11-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    3

    About using a Sub

    Hi everyone,
    I have a little problem but pretty annoying : I have a Sub in a module, and I'd like to use it as a formula in a cell, is that possible ?
    And I'd also like to pass a parameter to that sub. The parameter would be a cell's range (like A6, or whatever). how can I proceed to do that ?

    Thanks in advance for your answers, have a nice day !

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: About using a Sub

    UDF(UserDefinedFunction)

  3. #3
    Registered User
    Join Date
    05-11-2011
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: About using a Sub

    Basically what I want to do is have a drop down menu for the data validation in a cell (datas in that drop down menu are retrieved by a query, that's why I have to code it). But i cannot do that with a function (a function cannot create drop down menu in a cell). So I'm compelled to do that using a sub.
    Do you have any idea about how should I do with a sub ?

+ 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