LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Launch Excel On Event?

Thanks for the suggestion - this more or less came from
"microsoft.public.scripting.vbscript"

openexcel

Sub openexcel()

MsgBox "Start"

Dim xlObj

Set xlObj = CreateObject("excel.application")
xlObj.Workbooks.Open "C:\Folder\FileName.xls"
xlObj.Run "MacroName"
xlObj.ActiveWorkbook.Saved = True
xlObj.ActiveWindow.Close
xlObj.Quit
Set xlObj = Nothing

MsgBox "End"

End Sub


--
"Trying to make reports so easy... even a monkey could run ''em!"

 
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
Launch Click Event Using Application.Run cellist Excel Discussion (Misc queries) 4 November 5th 09 12:46 AM
How to launch one XLA from another on Excel launch levka Excel Programming 1 July 25th 05 04:22 AM
Want to launch Excel from C# app Stefani[_2_] Excel Programming 2 March 18th 05 05:44 PM
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM
Launch a Sub Worksheet_Change Event from inside a macro Rolo[_3_] Excel Programming 1 November 9th 03 12:02 PM


All times are GMT +1. The time now is 05: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"