Denna funktion tillåter användare att anropa de inbyggda funktionerna i KUTOOLS med hjälp av VBA-kod enligt följande:
1. Lägg till en referens till KutoolsforExcel i projektet (som visas i följande figur)
Presse
Alt + F11 genvägar för att öppna VB-redigeraren i Excel, och klicka sedan
verktyg >
Referenser ... att lägga
KutoolsforExcele som referenser i VBA-projektet.
2. Använd
CallKutoolsAction metod i en VBA-kod för att anropa en specifik funktion av KUTOOLS, som innehåller en parameter av typen Actions uppräkning som anger vilken funktion som specifikt ska anropas, till exempel följande kod:
Sub CallKutoolsActionDemo()
'Call the Compare Cells function
Call Callkutoolsaction(CompareCells)
'Invoke the About function
Call Callkutoolsaction(About)
End Sub