![]() |
Excel macro issue to cut and paste sections inside word
Hi all,
I am trying to create an automatically customized word document based on the user's answers to an excel sheet. Based on a master document and on the answers, I want to insert the appropriate parts of the master doc in the customized one. For that I use an excel macro that collects the answers. I have been able to copy and paste the entire document (using wholestory) but I am completely unable to do the same with sections. Here is what i have so far: Code:
# '-----Copy master docCode:
'-----Create personalized tuning procedureAnd here is where the problems start. So far I have just been trying with a hardcoded section. Here are a few of the unsuccessful ways i tried this: Code:
Dim MyRange As RangeCode:
1. Set S = appWD_tun_process.ActiveWindow.SelectionCode:
Dim MyRange As RangeDoes somebody have any idea on the correct way to do this? Thanks |
| All times are GMT +5.5. The time now is 17:00. |