Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT (http://www.outlookbanter.com/outlook-vba/33564-outlk-2k3-script-saving-excel.html)

news.microsoft.com November 22nd 06 09:01 AM

Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT
 
Hi All,

Finally I found the way to export my data from
outlook to Excel Programtically, the last thing I miss
is to save this excel file on a network HDD

I tryed
ObjExcelApp.SaveAsfile
ObjExcelSheet.SaveAsfile

ActiveWorkbook.SaveAs Filename:="D:\theName.xls" (this last code in VBA
code isn't available in outlook script)





tks for help



news.microsoft.com November 22nd 06 10:56 AM

Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT
 
After many try I use this

objExcelApp.Save "D:\MyResult.xls"

It open's me an Excel confirmation Window for Saving the file

I want to save the file automaticaly without asking the user

Tks

"news.microsoft.com" a écrit dans le message de news:
...
Hi All,

Finally I found the way to export my data from
outlook to Excel Programtically, the last thing I miss
is to save this excel file on a network HDD

I tryed
ObjExcelApp.SaveAsfile
ObjExcelSheet.SaveAsfile

ActiveWorkbook.SaveAs Filename:="D:\theName.xls" (this last code in VBA
code isn't available in outlook script)





tks for help





Sue Mosher [MVP-Outlook] November 22nd 06 01:50 PM

Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT
 
ActiveWorkbook.SaveAs Filename:="D:\theName.xls" (this last code in VBA
code isn't available in outlook script)


Yes, it is. You just can't use named arguments in vbscript:

objExcelApp.ActiveWorkbook.SaveAs "D:\theName.xls"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"news.microsoft.com" wrote in message ...
Hi All,

Finally I found the way to export my data from
outlook to Excel Programtically, the last thing I miss
is to save this excel file on a network HDD

I tryed
ObjExcelApp.SaveAsfile
ObjExcelSheet.SaveAsfile

ActiveWorkbook.SaveAs Filename:="D:\theName.xls" (this last code in VBA
code isn't available in outlook script)





tks for help



news.microsoft.com November 22nd 06 03:33 PM

Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT
 
Tks a lot Sue, it work Fine


Rds

"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
ActiveWorkbook.SaveAs Filename:="D:\theName.xls" (this last code in VBA
code isn't available in outlook script)


Yes, it is. You just can't use named arguments in vbscript:

objExcelApp.ActiveWorkbook.SaveAs "D:\theName.xls"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"news.microsoft.com" wrote in message
...
Hi All,

Finally I found the way to export my data from
outlook to Excel Programtically, the last thing I miss
is to save this excel file on a network HDD

I tryed
ObjExcelApp.SaveAsfile
ObjExcelSheet.SaveAsfile

ActiveWorkbook.SaveAs Filename:="D:\theName.xls" (this last code in VBA
code isn't available in outlook script)





tks for help






All times are GMT +1. The time now is 07:55 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com