Skip to main content

FAQ: How to Call Kutools for Excel Functions in a VBA Script

FAQ: How to Call Kutools for Excel Functions in a VBA Script

Author: Tech Support Last Modified: 2025-04-15

This article addresses common questions and provides clear, step-by-step guidance on how to invoke the built-in functions of Kutools for Excel using VBA. Whether you’re new to VBA or already an experienced Excel user, this FAQ will help you integrate Kutools seamlessly into your projects.

Q1: What is Kutools for Excel?

A: Kutools for Excel is an add-in that extends Excel’s native capabilities by providing a wide variety of functions and tools. It is designed to simplify many common tasks, from managing data to automating complex tasks. By integrating its functions into VBA, you can further automate your workflows and tap into an expanded set of features beyond what standard Excel offers.

Q2: What does the “CallKutoolsAction” method do?

A: The CallKutoolsAction method is a key function provided by Kutools for Excel that lets you execute one of the add-in’s built-in operations directly from your VBA script. By passing a parameter from the Actions enumeration (which specifies the exact function to be called), this method triggers the corresponding Kutools operation. For example, you can use it to call functions such as “Compare Cells” or “About” (which may display version or feature information).

Q3: How do I add a reference to Kutools for Excel in my VBA project?

A: To ensure your VBA script can access the Kutools functions, you must first add the Kutools for Excel reference to your VBA project. Follow these steps:

  • Open the Visual Basic Editor: Press Alt + F11 in Excel.
  • Access the References Dialog: In the VB Editor, click on Tools > References…

    kutools-faq-4.png
  • Select the Kutools Reference: In the References dialog box, locate and check the KutoolsforExcele (or similarly named) option.
  • Confirm: Click OK to add the reference to your project.

    kutools-faq-5.png
Q4: How do I use the CallKutoolsAction method in VBA?

A: Once you have added the reference, you can utilize the CallKutoolsAction method in your VBA scripts. Below is a sample procedure illustrating how to call two different functions from Kutools:


Sub CallKutoolsActionDemo()
    'Call the Compare Cells function
    Call Callkutoolsaction(CompareCells)
    
    'Invoke the About function
    Call Callkutoolsaction(About)
End Sub

In this example:

  • CompareCells: When passed as a parameter, this function compares cells based on predefined criteria.
  • About: This function typically provides information about the Kutools for Excel add-in.

Using the Call keyword ensures that each function is executed as a separate procedure.

Conclusion

By following these instructions and using the sample code provided, you can successfully call and utilize Kutools for Excel functions from your VBA scripts. Whether you are comparing cells, displaying information, or executing other operations, the integration of Kutools with VBA can enhance your Excel experience by automating complex tasks.

This FAQ should serve as a comprehensive guide to get you started on leveraging the power of Kutools for Excel within your VBA projects. Enjoy a smoother, more efficient Excel workflow!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!