About 137,000 results
Open links in new tab
  1. Call a VBA Function into a Sub Procedure - Stack Overflow

    Here are some of the different ways you can call things in Microsoft Access: To call a form sub or function from a module The sub in the form you are calling MUST be public, as in:

  2. How to Call VBA Function from Excel Cells? - Stack Overflow

    I am a VBA newbie, and I am trying to write a function that I can call from Excel cells, that can open a workbook that's closed, look up a cell value, and return it. So far I know how to write a …

  3. vba - What does the Call keyword do in VB6? - Stack Overflow

    Jan 26, 2009 · I have found a major difference about 'call' keyword with functions that having, ByRef Arguments (I have found this in MS-Access VBA editor). If you are calling the function …

  4. How to call a user defined function in vba code - Stack Overflow

    Aug 25, 2018 · I created a Public function in Module two called "t_value". I now want to use this function in the VBA code for a userform, which uses the input from the userform.

  5. Should I use Call keyword in VB/VBA? - Stack Overflow

    Apr 4, 2010 · I use Call for all VBA development of common library functions that I possibly will use in VB.NET. This allows me to move code using copy and paste between all the flavors of VB.

  6. How to return a result from a VBA function - Stack Overflow

    When called within VBA the function will return a range object, but when called from a worksheet it will return just the value, so set test = Range("A1") is exactly equivalent to test = …

  7. excel - Calling a function in VBA - Stack Overflow

    Jun 22, 2017 · Calling a function in VBA Asked 8 years, 5 months ago Modified 8 years, 5 months ago Viewed 6k times

  8. What are the rules governing usage of parenthesis in VBA function …

    The purpose of the Call statement when used with a Sub is to allow you to enclose the argument list in parentheses. However, if a subroutine does not pass any arguments, then you still …

  9. Calling a Sub or Function contained in a module using …

    As your 'functions' aren't retuning values, you should use Sub instead of Function. Call is never required, you could just write CallByName clsObj, "ClassFunc1". To call a function Func1 …

  10. How do I call a function inside another function in VBA?

    May 28, 2015 · There's an additional mistake in the first function where Col_Letter = vArr(0) should probably be myFirstFunction = vArr(0), or the other way around. This line sets the …