Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

word excel interface

Forum 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

ResolvedVersion 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 courses

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Checking formulas with multiple operators

When dealing with formulas containing more than one operator (+, -, /, *), Excel follow standard BEDMAS order of operation rules. These rules specify the order that calculations will be performed in, regardless of how the formula reads left to right:

B = brackets
E = exponents
D = division
M = multiplication
A = addition
S = subtraction

It should be noted that multiplication and division are considered equal; as are addition and subtraction.

If you would like to check the order in which Excel is performing calculations in a formula, simply click on the cell containing the formula. Then go to Tools - Formula Auditing and select Evaluate Formula.

In the Evaluate Formula dialogue box that appears on your screen, click the Evaluate button to see how Excel calculates the formula result.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.