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

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
linking

ResolvedVersion 2003

Shailesh has attended:
Access VBA course

Linking

Is there a command to link to retieve data from Other MS products eg Excel, Word?

RE: Linking

Hi Shailesh

Thank you for your question.

To launch another application you need to work with an Application Object. Here is an example of how to launch Word and make it visible.

Sub WordExample()
'Opens word and creates a new document
Dim appWord As Object
Set appWord = CreateObject("Word.Application")
appWord.Visible = True ' Makes Word visible
End Sub


Record a macro in word or excel that selects the correct data then copy that code into the above code after the visible =True line. At the start every line in the other application you will need to enter appWord. (remember the dot).

It takes a little time to get it working smoothly but that should solve your problem.

Regards,

Laura GB

Tue 27 Jan 2009: Automatically marked as resolved.

Access tip:

Convert A Form Into A Report

If there is a form that you want to to save as a report:

1. Open that form in Design View
2. Select File and Save As
3. In the Save As Dialog box Select Report

The system creates a report based on the form.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.