More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

share code 09-Sep-2010 05:59

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

Code level: intermediate    Code area: Outlook Form Design Printer Friendly Version
Title: Outlook Survey Response Accumulation/Reporting
Description: Accumulates and reports results of an Outlook survey that uses the survey code at http://www.outlookcode.com/d/forms/survey.htm, with only slight modification (described below in the code section). The person running the compliation code only needs to : 1) Edit the code below to specify the number of questions and type of each question (Yes/No, Agree scale, Text, Choice, Rating); 2) If using any "Choices" questions, specify the actual choice strings in the code, and add new variables as needed (full instructions are given in the code). 3) Accumulate the survey responses in a folder called "Survey Responses" in their Inbox (the name of the folder is configurable in the code).
Date: 04-Jun-2004  04:44
Code level: intermediate
Code area: Outlook Form Design
Posted by: Matthew Bell
Body:
All 25comments
Page [ 1 2 3 Next >>  
  29-Jun-2004  18:13   
Has anyone been able to run this including reporting? Is there a way to bypass security? Anyone with an interest to help a newbie take baby steps?
  30-Jun-2004  09:29   
To bypass security prompts, you'd need to upgrade to Outlook 2003 or recode the form using Redemption (http://www.dimastr.com/redemption )
  15-Jul-2004  14:34   
Just found that there's another prerequisite (that I already had enabled, but didn't realize it was required): To run this code, you must go to Tools, References in the VBA Editor and select the "Microsoft CDO 1.21 Library".
  20-Jul-2004  10:31   
You're using CDO 1.21 only for better performance and memory, right?
  20-Jul-2004  12:56   
Nope -- when I tried to run this code on my boss' machine, it gave an error saying it couldn't recognize a certain "user-defined" variable. I was already using the CDO 1.21 Library on my own machine for a different set of code (re: getting senders' SMTP addresses), so I thought maybe I'd copied code into this script that required CDO 1.21. After I selected the CDO 1.21 Library on my boss' machine, the code then worked. So I dunno -- I'm still a newbie when it comes to the CDO side of things.
  20-Sep-2004  11:56   
I have installed the form and have begun creating Surveys. I have made the changes to the two lines of code as instructed. I now get a "Unterminated String constant at line 373 error" I click Ok and the Form opens. How do I fix this error and what steps are there to running the compilation code after you receive your survey replys?
  27-Sep-2004  12:37   

I too received the error on line 373. I corrected it (maybe wrongly) by adding a closing double quote. .....Chr(34) & "!"

Now I receive an error on line 444 - expecting end of statement. Not sure how to fix this one.

Anyone have an idea?
Dom Fino
  28-Sep-2004  07:38   
Dom, it might help if you showed the code for statement 444 and maybe a little of the code near it.
  28-Sep-2004  09:17   
You're right, I missed a closing quote in my instructions above for the two changes to be made -- sorry. The second "from... to..." should read as follows (now includes the closing quote at the very end):

'and from
' strcsvanswers = strcsvanswers & Chr(34) & aryAnswers(I) & Chr(34) & ","
'to
' strcsvanswers = strcsvanswers & Chr(34) & aryAnswers(I) & Chr(34) & "|"
 
  02-Nov-2004  15:09   
Where does one include this vbs script? (I guess installation instructions are what I am looking for)

Thanks!!
Page [ 1 2 3 Next >>  
Post your comment



name        email