98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Word - Excel interface: Inserting text in specific place in the
Word - Excel interface: Inserting text in specific place in the
Resolved · Low Priority · Version 2016
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
Tue 18 Sep 2018: Automatically marked as resolved.
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Moving between split pane sections in a spreadsheetIf you have used the split panes feature in your worksheet, use the following keyboard shortcut keys to move quickly and effortlessly between paned sections: |