Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
EnriqueLDE
Contributor II
Contributor II

VBA Tool to add macro code in Job

Hello,

I'm looking for a VBA tool which allows me to define conditions to my jobs. I'm working with Excel Sheets and i need to use this tool to add my VBA macro code from Excel. Is it possible?

Thank you!

 

  

Labels (2)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

you can call VBA script directly using tJava
like

Runtime.getRuntime().exec("wscript yourmacro.vbs");

so wrap your Macro code inside inside a Visual Basic Script and run it.

View solution in original post

5 Replies
Anonymous
Not applicable

Hello,

Is your Excel files containing non-visible Names?

Please try to use tFileInputExcel component to see if it is OK with you.

Best regards

Sabrina

EnriqueLDE
Contributor II
Contributor II
Author

Hi,

I'm already using tFileInputExcel to work with Excel files. But also i need to add a tool that allows me to insert vba code to modify this tFileInputExcel. If it's not possible i supose there's a tool to insert Java code instead. The aim is a tool where i can introduce code to modify Excel Files introduced by tFileInputExcel.

Thank you! 

akumar2301
Specialist II
Specialist II

you can call VBA script directly using tJava
like

Runtime.getRuntime().exec("wscript yourmacro.vbs");

so wrap your Macro code inside inside a Visual Basic Script and run it.

EnriqueLDE
Contributor II
Contributor II
Author

@uganesh Perfect, that works. Thank you!

DBLONDEL1643728674
Contributor III
Contributor III

Hello Akumar,

 

You can run it on linux ??