Alek has attended:
Excel VBA Advanced course
Word - Excel interface: Inserting text in specific place in the
Hello,
During the advanced course we have touched on the possibility of editing word from excel. I'm trying to implement this now and I'm struggling to find help that would allow me to insert text in specific location of the word document.
I'm using excel spreadsheet to monitor work progress and need to generate a daily report based on the data. At the moment I've got a script allowing me to create a document from the excel, using a template, but I would like to use the VBA to insert date, day of the week and performance in separate cells of a table in the word document.
Can you please advise on how to approach it?
Regards,
Alek
RE: Word - Excel interface: Inserting text in specific place in
Hi Alek,
Thank you for the forum question.
If you insert bookmarks in the word template, you can navigate to
the bookmarks:
wApp.Selection.Goto What:=wdGoToBookmark, Name:="NameOfBookmark"
wApp.Selection.TypeText date()
The code above will go to the bookmark and insert the date.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector