[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/13/2008 at 09:53AM PST, ID: 23902697
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Template workflow assistance

Asked by weareit in Microsoft Word

Tags: Microsoft, Word, 2003, VBA

I have a workflow process with which working with a Word Template, I need to accomplish the following:

Save the Active Document to a predefined location depended upon the users selection in the form.
Close the document.
Open a new instance based upon the template.

The users are opening the template in the standard way (click on a shortcut, recieve a Document1 [2,3,4,etc]).

Currently I have the first two requirements completed.  The Document instance of the template is saved to the location and closed.  But when it gets to the point of creating the new instance, nothing happens.  I understand why it is happening (When the ActiveDocument.Close method fires, it closes the document instance and it's attatched TemplateProject instance leaving just a Normal Template instance running).  I have tried to open a new document instance using a method placed in Normal (really not the preferred way I would like to take this), but this too has proven a little more difficult to accomplish.

Any assistance would be greatly appreciated.

-saige-
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
Sub NextDocument()
    Dim strTempData As String
    strPath = "P:\"
    strAppPath = TemplateProject.ThisDocument.Path & "\Surgery Form.dot"
    strDocTitle = ActiveDocument.FormFields("Text1").Result & " " _
    & Replace(ActiveDocument.FormFields("Text17").Result, "/", "-")
    Select Case ActiveDocument.FormFields("AttendDoctor").Result
        Case "Dr. Lawrence Mandel"
            strPath = strPath & "Surgery Scheduling\"
        Case "Dr. William Cruce"
            strPath = strPath & "Surgery Scheduling-Dr. Cruce\"
        Case Else
            MsgBox ("A doctor was not selected.  Please select a doctor and try again.")
            Exit Sub
    End Select
    strSaveString = strPath & strDocTitle & ".doc"
    With ActiveDocument
        .SaveAs FileName:=strSaveString
        .Close
    End With
    MsgBox ("File has been saved to: " & strSaveString & _
    "  Please continue.")
    Documents.Add Template:=strAppPath, NewTemplate:=False
End Sub
[+][-]11/13/08 10:23 AM, ID: 22952651

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/13/08 11:01 AM, ID: 22953087

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/13/08 11:29 AM, ID: 22953425

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Word
Tags: Microsoft, Word, 2003, VBA
Sign Up Now!
Solution Provided By: JOrzech
Participating Experts: 2
Solution Grade: A
 
 
[+][-]11/13/08 12:19 PM, ID: 22954041

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/14/08 06:34 AM, ID: 22959771

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_2_20070628