• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 130
  • Last Modified:

VBA Program Load

Hi, i am trying to load a word document from a button in access, using VBA. I know a certain amount of VB, and i know that the Shell command works in VB, but appears to not work in VBA. Please have a brainstorm and come up with some ideas! Thanks
0
beauvoir2
Asked:
beauvoir2
1 Solution
 
aelatikCommented:
Use this,

Dim OpenWorkFile
Set OpenWorkFile = CreateObject("WORD.APPLICATION")
OpenWorkFile.Documents.Open FileName:="C:\0.doc", ReadOnly:=True
OpenWorkFile.Visible = True
Set OpenWorkFile = Nothing
0
 
CleanupPingCommented:
Hi beauvoir2,
This old question (QID 20565458) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now