Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default Free-standing macros

Can a macro exist and run on its own outside of a spreadsheet? I wrote a
program that I'd like to run from, say, my Desktop rather than opening a
spreadsheet and clicking a button. Any ideas?

Thanks, Matthew

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Free-standing macros

Excel macros can only run in Excel. You might be able to convert your
code to a VBscript routine: all depends on what it does....

Tim.


"Pflugs" wrote in message
...
Can a macro exist and run on its own outside of a spreadsheet? I
wrote a
program that I'd like to run from, say, my Desktop rather than
opening a
spreadsheet and clicking a button. Any ideas?

Thanks, Matthew



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Free-standing macros

You should be able to do anything from VBScript, but it will require opening
an instance of Excel. Once you have a reference to an Excel object, you will
have the same options.

Here is a very trivial example that should be saved as a .vbs file and then
just launched

Dim xlApp

Set xlApp = CreateObject("Excel.Application")
xlApp.Workbooks.Add
MsgBox xlApp.ActiveWorkbook.Name
xlApp.Quit
Set xlApp = Nothing


--
HTH

Bob Phillips

"Pflugs" wrote in message
...
Can a macro exist and run on its own outside of a spreadsheet? I wrote a
program that I'd like to run from, say, my Desktop rather than opening a
spreadsheet and clicking a button. Any ideas?

Thanks, Matthew



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
Free social world wide network pays for 10 generations! Free! alabatros1 Excel Discussion (Misc queries) 0 November 15th 08 09:52 PM
under standing if statments zx12rbullet Excel Worksheet Functions 2 July 21st 07 10:16 PM
Are there any free macros for statistics supplied with excel? alan New Users to Excel 1 April 18th 07 06:35 PM
about the dot standing alone santhagr Excel Discussion (Misc queries) 3 March 16th 07 09:37 PM
Football League Standing abds2000 Excel Programming 7 September 3rd 03 01:04 PM


All times are GMT +1. The time now is 04:34 PM.

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

About Us

"It's about Microsoft Excel"