Running an excel macro using rubyXL

22 views
Skip to first unread message

john mc

unread,
Nov 18, 2016, 7:28:12 AM11/18/16
to Ruby on Rails: Talk
Hello,

I am using rubyXL version 3.3.16. I and trying to interact with a .xlsm document to perform data read/write.
There is also a macro within the worksheet which I need to run at the end. Is there a way I could run the excel macros using rubyXL version 3.3.16 ?
Below is my code to access the excel and the worksheet:

require 'rubyXL'

workbook = RubyXL::Parser.parse("<abc.xlsm>")
myWorksheet = workbook[0]

Please help on how to run any existing macros in the workbook.

Thanks!
John


Reply all
Reply to author
Forward
0 new messages