+ Reply to Thread
Results 1 to 3 of 3

syntax for variable

  1. #1
    adamaagard
    Guest

    syntax for variable

    What is the syntax for declaring variabls in VBA functions that may or may
    not be filled?

    Example:

    Function Jim(a,b,c,?,?,?) where ? are variables that may or may not be filled

    Thanks

  2. #2
    Bob Phillips
    Guest

    Re: syntax for variable

    Look up ParamArray in help, and this previous post http://tinyurl.com/c65h3

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "adamaagard" <[email protected]> wrote in message
    news:[email protected]...
    > What is the syntax for declaring variabls in VBA functions that may or may
    > not be filled?
    >
    > Example:
    >
    > Function Jim(a,b,c,?,?,?) where ? are variables that may or may not be

    filled
    >
    > Thanks




  3. #3
    RB Smissaert
    Guest

    Re: syntax for variable

    I think what you need is the keyword Optional:

    Function Jim(a,b,c,Optional d,Optional e,Optional f)

    RBS


    "adamaagard" <[email protected]> wrote in message
    news:[email protected]...
    > What is the syntax for declaring variabls in VBA functions that may or may
    > not be filled?
    >
    > Example:
    >
    > Function Jim(a,b,c,?,?,?) where ? are variables that may or may not be
    > filled
    >
    > 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