Question : How To Create a Macro in Outlook 2003 To Do a Save As to a Sharepoint Location

I use Outlook 2003. At my job I have to save email messages to sharepoint folder locations everyday.

To automate this process a little instead of having to manually click: File - Save As, select the type, then drill down to the sharepoint default drive location, I wanted to see if there was a way to create a Macro to do this for me?

I am not a programmer and know nothing about creating Macros in Outlook. But wanted to see if someone might be able to help create one for me. Just looking some of the settings in Outlook, it looks like there actually might be a way to do it.

Thanks.

Answer : How To Create a Macro in Outlook 2003 To Do a Save As to a Sharepoint Location

Do you have a scripting language like PHP?

Otherwise it should be able to be accomplished using MySQL cursors and MySQL LOAD_FILE. The below code will need tweaked for your tables and field names.

MySQL Cursors: http://dev.mysql.com/doc/refman/5.0/en/cursors.html

MySQL Load File: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_load-file
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
DECLARE done INT DEFAULT 0;
  DECLARE fkey INT;
  DECLARE fname VARCHAR(255);
  DECLARE fpath VARCHAR(255);
  DECLARE cur1 CURSOR FOR SELECT FileKey, FileName, FilePath FROM FileTable;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;

  OPEN cur1;

  REPEAT
    FETCH cur1 INTO fkey, fname, fpath;
    IF NOT done THEN
       INSERT INTO FileTable (FileBinary) VALUES (LOAD_FILE(CONCAT(fpath, ' ', fname))) WHERE FileKey=fkey;
    END IF;
  UNTIL done END REPEAT;

  CLOSE cur1;
Random Solutions  
 
programming4us programming4us