Hi All,
I am working on a Project where I have data in a Excel worksheet (each line is a record). I need to pass that
data to Bookmarks defined in a Word Template.
According to requirements, the VBA code has to reside in Word Doc and I need to link excel worhsheet and read each row in excel worksheet and create a word documents.
I am new to VBA and I only know that you can do that by inserting Bookmarks in word template but I don't know how to read excel worksheet row by row and populate the bookmarks and create word documents for printing.
I also need to perform some calculations on few columns in excel before populating Bookmarks in Word Template.
The sample data in Excel worksheet are:
NAME |Address|Annual income|401K% |Bonus|Oncall|Overtime|
I need to add Bonus+oncall+overtime before populating TotalIncome BookMark in word template. And also calculate the % of Annual income to get 401K amount(eg 3% of annual income = 401K contribution).
I would greatly appreciate if someone could give me some coding help on this.
Thanks
harryj
I am working on a Project where I have data in a Excel worksheet (each line is a record). I need to pass that
data to Bookmarks defined in a Word Template.
According to requirements, the VBA code has to reside in Word Doc and I need to link excel worhsheet and read each row in excel worksheet and create a word documents.
I am new to VBA and I only know that you can do that by inserting Bookmarks in word template but I don't know how to read excel worksheet row by row and populate the bookmarks and create word documents for printing.
I also need to perform some calculations on few columns in excel before populating Bookmarks in Word Template.
The sample data in Excel worksheet are:
NAME |Address|Annual income|401K% |Bonus|Oncall|Overtime|
I need to add Bonus+oncall+overtime before populating TotalIncome BookMark in word template. And also calculate the % of Annual income to get 401K amount(eg 3% of annual income = 401K contribution).
I would greatly appreciate if someone could give me some coding help on this.
Thanks
harryj