We are trying to create an excel document which supports macros with some data validation code.
Is it possible to use axlsx package to create such a document.
e.g. A single sheet called Users which contains a VBA script (which can be viewed using Sheet –> View Code)
We could also provide a simple xls template file with this information, would it be possible to add rows with column data using axlsx gem.
Although, the answer is yes but as Brettdj said this is a broad guestion. I think you should first read this and this about creating forms. and then reffer to these links:
how-do-i-set-data-validation-in-vba
visual-basic-applications-validation-rule
Reviewing these addresses will help you to understand exactly what is possible and what is not.