help, help, help...I'm begging here :-\ RE RE POST simple code help needed
Author |
Message |
Renee Moffet #1 / 5
|
 help, help, help...I'm begging here :-\ RE RE POST simple code help needed
Sorry to be a pest, but I've had no replies and I've posted twice. If I'm asking this on the wrong forum, please advise me. I'm working on a mail merge process that will be started in Access. When users click a button, they follow a hyperlink to a letter that has been saved as a mail merge document with the merge fields and Data Source already set. It is password protected so users can't save changes to it. When the document opens, I'd like it to: 1. Open read only without a prompt (assuming I can hold down shift to get into it for edits when I need to). 2. Mail merge to a new document 3. Close the original document without prompting a save. Can anyone help me? I am clueless about coding in Word.
|
Sat, 27 Sep 2003 21:52:05 GMT |
|
 |
Jonathan Wes #2 / 5
|
 help, help, help...I'm begging here :-\ RE RE POST simple code help needed
Hi Renee, The reason you get no anser is probably because nobody can provide one. This may be in part at least because the description is not sufficiently clear. (It may also have something to to with the fact that the volunteers helping here have limited time, and usually prefer to spend it helping somebody who has made a start by themselves and got stuck, rather than somebody asking for a complete solution to be provided to them.) Can I suggest that, as a first attempt, you record a macro, and see whether that does what you need. If there are points on which the recorded macro doesn't do what you want, experiment with the code and see if you can tweak it to do it right. If you get stuck, post the relevant parts of the code you have so far, and somebody should then be in a position to help. -- Regards Jonathan West - Word MVP MultiLinker - Automated generation of hyperlinks in Word Conversion to PDF & HTML http://www.multilinker.com Word FAQs at http://www.multilinker.com/wordfaq Please post any follow-up in the newsgroup. I do not reply to Word questions by email
Quote: > Sorry to be a pest, but I've had no replies and I've posted twice. If > I'm asking this on the wrong forum, please advise me. > I'm working on a mail merge process that will be started in Access. > When users click a button, they follow a hyperlink to a letter that > has been saved as a mail merge document with the merge fields and Data > Source already set. It is password protected so users can't save > changes to it. > When the document opens, I'd like it to: > 1. Open read only without a prompt (assuming I can hold down shift to > get into it for edits when I need to). > 2. Mail merge to a new document > 3. Close the original document without prompting a save. > Can anyone help me? I am clueless about coding in Word.
|
Sun, 28 Sep 2003 04:03:05 GMT |
|
 |
Renee Moffet #3 / 5
|
 help, help, help...I'm begging here :-\ RE RE POST simple code help needed
OK, sorry if I gave the impression I'm trying to avoid work. I've done a lot of the preliminary to this in Access. And honestly, I'm simply unaware of where to begin on the Word side. I'm sure I can use the macro recorder to get step 2 of my request. That leaves me needing help with 1 and 3. I can't imagine that this involves very many lines of code????? 1. Open read only without a prompt (assuming I can hold down shift to get into it for edits when I need to). 3. Close the original document without prompting a save. (Focus will have to return here after the merge? Then focus again on the newly merged document?) Any takers out there? Quote:
> Hi Renee, > The reason you get no anser is probably because nobody can provide one. This > may be in part at least because the description is not sufficiently clear. > (It may also have something to to with the fact that the volunteers helping > here have limited time, and usually prefer to spend it helping somebody who > has made a start by themselves and got stuck, rather than somebody asking > for a complete solution to be provided to them.) > Can I suggest that, as a first attempt, you record a macro, and see whether > that does what you need. If there are points on which the recorded macro > doesn't do what you want, experiment with the code and see if you can tweak > it to do it right. If you get stuck, post the relevant parts of the code you > have so far, and somebody should then be in a position to help. > -- > Regards > Jonathan West - Word MVP > MultiLinker - Automated generation of hyperlinks in Word > Conversion to PDF & HTML > http://www.multilinker.com > Word FAQs at http://www.multilinker.com/wordfaq > Please post any follow-up in the newsgroup. I do not reply to Word questions > by email
> > Sorry to be a pest, but I've had no replies and I've posted twice. If > > I'm asking this on the wrong forum, please advise me. > > I'm working on a mail merge process that will be started in Access. > > When users click a button, they follow a hyperlink to a letter that > > has been saved as a mail merge document with the merge fields and Data > > Source already set. It is password protected so users can't save > > changes to it. > > When the document opens, I'd like it to: > > 1. Open read only without a prompt (assuming I can hold down shift to > > get into it for edits when I need to). > > 2. Mail merge to a new document > > 3. Close the original document without prompting a save. > > Can anyone help me? I am clueless about coding in Word.
|
Mon, 29 Sep 2003 00:18:47 GMT |
|
 |
Jonathan Wes #4 / 5
|
 help, help, help...I'm begging here :-\ RE RE POST simple code help needed
Hi Renee
Quote: > OK, sorry if I gave the impression I'm trying to avoid work. I've done a lot of > the preliminary to this in Access. And honestly, I'm simply unaware of where to > begin on the Word side. I'm sure I can use the macro recorder to get step 2 of > my request. That leaves me needing help with 1 and 3. I can't imagine that > this involves very many lines of code????? > 1. Open read only without a prompt (assuming I can hold down shift to > get into it for edits when I need to).
Dim MyDoc as Document Set MyDoc = Documents.Open(FileName:="C:\My Documents\My File.doc", _ ReadOnly:=True) (keep the MyDoc object variable because you'll need it for the next bit) Quote: > 3. Close the original document without prompting a save. (Focus will have to > return here after the merge? Then focus again on the newly merged
document?) MyDoc.Close SaveChanges:=wdDoNotSaveChanges Quote: Hope this helps! -- Regards Jonathan West - Word MVP MultiLinker - Automated generation of hyperlinks in Word Conversion to PDF & HTML http://www.multilinker.com Word FAQs at http://www.multilinker.com/wordfaq Please post any follow-up in the newsgroup. I do not reply to Word questions by email
|
Mon, 29 Sep 2003 00:27:50 GMT |
|
 |
Renee Moffet #5 / 5
|
 help, help, help...I'm begging here :-\ RE RE POST simple code help needed
Thanks for the help, Jonathan. After looking at what Cindy posted. I think I'm going to try this from a different perspective and automate as much of it as possible in Access. I'm keeping both of your suggestions, I'm sure they'll be needed from the Access side too. Quote:
> Hi Renee
> > OK, sorry if I gave the impression I'm trying to avoid work. I've done a > lot of > > the preliminary to this in Access. And honestly, I'm simply unaware of > where to > > begin on the Word side. I'm sure I can use the macro recorder to get step > 2 of > > my request. That leaves me needing help with 1 and 3. I can't imagine > that > > this involves very many lines of code????? > > 1. Open read only without a prompt (assuming I can hold down shift to > > get into it for edits when I need to). > Dim MyDoc as Document > Set MyDoc = Documents.Open(FileName:="C:\My Documents\My File.doc", _ > ReadOnly:=True) > (keep the MyDoc object variable because you'll need it for the next bit) > > 3. Close the original document without prompting a save. (Focus will have > to > > return here after the merge? Then focus again on the newly merged > document?) > MyDoc.Close SaveChanges:=wdDoNotSaveChanges > > Any takers out there? > Hope this helps! > -- > Regards > Jonathan West - Word MVP > MultiLinker - Automated generation of hyperlinks in Word > Conversion to PDF & HTML > http://www.multilinker.com > Word FAQs at http://www.multilinker.com/wordfaq > Please post any follow-up in the newsgroup. I do not reply to Word questions > by email
|
Wed, 01 Oct 2003 02:41:40 GMT |
|
|
1. help,help,help,help,help,help,help,help,help,help,help,help,help,
2. Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,Help,
3. Help, Help, Help, Help, Help, Help, Help, Help, Help, Help, Help, Help, Help, Help, Help, Help, Help,
4. HELP HELP HELP HELP HELP HELPHELP HELP HELPHELP HELP HELP
5. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,
6. HELP HELP HELP, Need help, in IE Control
7. Help Please: Frustrated novice need help with simple proceedure
8. HELP - Newbie needs help on simple problem!
9. HELP HELP HELP HELP HELP HELP HELP HEL P HELP HE LP HELP HELP HEL P HELP HELP
10. Help Help Help Help Help Help !!!!!
11. HELP HELP HELP Set document name of print job from VB HELP HELP HELP
|
|
|