+ Reply to Thread
Results 1 to 8 of 8

calling a procedure

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

    calling a procedure

    Hi All

    This time my query is with a procedure. At the outset i am still not clear between a function and procedure.
    Though i understand Func returns a value but proc doesnt.
    fun returns only one value but proc does more than 1 parameter.

    Anyways now my question is i am trying to write a procedure at module level.
    if value is passed between two numbers the fees for 3 quarters vary. my code is below

    Please Login or Register  to view this content.
    My Code at sheet level

    Please Login or Register  to view this content.
    But this doesnt give any result . What corrections to be made please advise.
    Last edited by grkchakri; 10-19-2013 at 11:22 AM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: calling a procedure

    Something like

    Please Login or Register  to view this content.
    Martin

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

    Re: calling a procedure

    But where will it give the fee details(Q1,Q2,Q3) for 100000
    when i run the sub test()

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: calling a procedure

    This will depend upon how you have declared Q1,Q2 and Q3. If this are declared at module or public level, they will be available to subsequent code.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: calling a procedure

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by protonLeah; 10-19-2013 at 08:35 PM.
    Ben Van Johnson

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

    Re: calling a procedure

    Thank you very much proton. Thats working fine. Please below my code, i have created error handled error at the sheet level. so that
    it tells the operator if incorrect amount entered.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: calling a procedure

    Please Login or Register  to view this content.

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

    Re: calling a procedure

    thank you very much, an eye for a detail i just missed on that small thing,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 10-02-2012, 03:06 PM
  2. Name of calling procedure
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2011, 04:02 PM
  3. Calling a Function in a Procedure
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2010, 02:38 PM
  4. [SOLVED] calling procedure
    By Juggernath in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2005, 08:45 AM
  5. [SOLVED] Calling sub procedure
    By Yossi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2005, 09:05 AM

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