Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I write a VBA script that runs from the DOS prompt window?

I use VBA with EXCEL and want to write and run a VBA script that can be run
from the DOS prompt and uses Windows XP but no EXCEL services.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I write a VBA script that runs from the DOS prompt window?

http://www.microsoft.com/scripting

--
Regards,
Tom Ogilvy

"cmhoward" wrote in message
...
I use VBA with EXCEL and want to write and run a VBA script that can be run
from the DOS prompt and uses Windows XP but no EXCEL services.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default How do I write a VBA script that runs from the DOS prompt window?


cmhoward wrote:
I use VBA with EXCEL and want to write and run a VBA script that can be run
from the DOS prompt and uses Windows XP but no EXCEL services.


Expanding on what Tom said - what you want to do is simply impossible.
VBA needs a host application to run in. *But* - VBScript is a quite
similar language that can run by itself in Windows XP. As a language,
VBScript is better than VBA in some ways (built in regular expression
support and dictionaries (associative arrays)) and worse in others
(variant is the only type - a blemish in my book, plus it doesn't come
with a nice IDE). It is an interpreted language and is thus noticably
slower than the quasi-compiled VBA, but for scripts designed to run
from a DOS prompt this probably isn't an issue. The learning curve in
going from VBA to VBScript is very small. Often, a program that you
have written in Excel VBA (if it doesn't really use Excel) can be
turned into a functioning VBScript program in a matter of minutes.

Hope that helps

-John Coleman

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I write a script to add space between numbers in a column? [email protected] Excel Discussion (Misc queries) 4 May 15th 07 04:53 PM
Pop up window prompt for name/address upon opening of file HRgal Excel Programming 2 August 22nd 06 04:39 PM
A script to write in missing text Crowbar via OfficeKB.com Excel Programming 1 October 31st 05 03:35 PM
A script to write in missing text Crowbar via OfficeKB.com Excel Programming 0 October 31st 05 03:26 PM
Write over existing file with no Prompt DNewton Excel Programming 2 April 29th 04 06:54 PM


All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"