PC Review


Reply
 
 
=?Utf-8?B?Q2hyaXM=?=
Guest
Posts: n/a
 
      11th Oct 2006
Hello ,

I am looking for a command line I can run in a batch file or a VB script
that I can open a excel file (name_todays Date.XLS) add to it , Print
Portrait, fit to one page wide, Legal, and to print gridlines, then same the
settings then close out of excel.


Any help would be so appreciated.

Chris

 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      11th Oct 2006
you would have to open a workbook that has code in the workbook open event
to do all that.

then the command would be

Excel.Exe "C:\Myfolder\Trigger.xls"

as an example.

--
Regards,
Tom Ogilvy


"Chris" <(E-Mail Removed)> wrote in message
news:9DCBF1AF-AAD0-450A-97F0-(E-Mail Removed)...
> Hello ,
>
> I am looking for a command line I can run in a batch file or a VB script
> that I can open a excel file (name_todays Date.XLS) add to it , Print
> Portrait, fit to one page wide, Legal, and to print gridlines, then same
> the
> settings then close out of excel.
>
>
> Any help would be so appreciated.
>
> Chris
>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      11th Oct 2006
for VBscript, you need to look at Automation

http://support.microsoft.com/?id=167223
OFF97: Microsoft Office 97 Automation Help File Available (Q167223)

http://support.microsoft.com/?id=260410
OFF2000: Microsoft Office 2000 Automation Help File Available (Q260410)

--
Regards,
Tom Ogilvy



"Chris" <(E-Mail Removed)> wrote in message
news:9DCBF1AF-AAD0-450A-97F0-(E-Mail Removed)...
> Hello ,
>
> I am looking for a command line I can run in a batch file or a VB script
> that I can open a excel file (name_todays Date.XLS) add to it , Print
> Portrait, fit to one page wide, Legal, and to print gridlines, then same
> the
> settings then close out of excel.
>
>
> Any help would be so appreciated.
>
> Chris
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Comand line or VB Script =?Utf-8?B?Q2hyaXM=?= Microsoft Excel Programming 1 11th Oct 2006 02:11 AM
Need Comand line or VB =?Utf-8?B?Q2hyaXM=?= Microsoft Excel Programming 1 11th Oct 2006 02:02 AM
Comand line or Vb =?Utf-8?B?Q2hyaXM=?= Microsoft Excel Worksheet Functions 0 11th Oct 2006 12:27 AM
Comand line interface? Spyware Discussion 2 14th Jan 2005 06:36 PM
Map drive via comand line - How? Robert Johnson Microsoft Windows 2000 Networking 1 26th Nov 2003 11:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:20 PM.