Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cindy M -WordMVP-
 
Posts: n/a
Default Macro Security

Hi ?B?RGFu?=,

Can I run this method using MS Access VBA or will I
still run into the same problem? I have made a couple initial attempts with
no success. My initial code is as follows:

Set oDoc = GetObject(Forms![frmDocsMain]![Sub]![FilePath], "Word.Document")
oDoc.Application.Visible = True
oDoc.Application.WindowState = wdWindowStateMaximize

If its possible, from here I'm not exactly sure how to proceed with the
OpenDataSource code.

Best is to record linking to the data source in a Word macro, then copy the
result into your automation code and make any necessary adjustments (such as
replacing the hard-coded file path with a variable).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word has stopped access to the Endnote 6.0 with macro security Tired and cranky student Microsoft Word Help 1 April 27th 05 01:05 AM
Macro Security JD Microsoft Word Help 11 April 24th 05 03:02 PM
macro security will not stay set jam Microsoft Word Help 1 April 6th 05 12:03 PM
Prevent User from Changing Macro Security JoyceJoseph Microsoft Word Help 1 March 31st 05 08:49 PM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 03:53 AM


All times are GMT +1. The time now is 12:29 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"