PC Review


Reply
Thread Tools Rate Thread

How do I Auto Start a Macro

 
 
New Member
Join Date: Mar 2009
Posts: 2
 
      24th Mar 2009
How do I auto start a macro when I open an excel file?
 
Reply With Quote
 
 
 
 
Senior Member
JaLing's Avatar
Join Date: Jul 2008
Location: Stowmarket
Posts: 407
 
      24th Mar 2009
Unless it's signed / fully trusted..... you can't.
You can code it to but Microsoft have applied security features to prevent it.
It's a big vulnability.

 
Looking for a Tag Line
_-_-_-_-_-_-_-_-_-_-_-

NO! I'm not coming to bed yet....
I'm still playing EVE
 
Reply With Quote
 
New Member
Join Date: Mar 2009
Posts: 2
 
      24th Mar 2009
what is the auto start code for a macro
This is what VB has in it's help file:

"This example opens the workbook Analysis.xls and then runs its Auto_Open macro."
Workbooks.Open "ANALYSIS.XLS"
ActiveWorkbook.RunAutoMacros xlAutoOpen

Does the name of the macro go in the place of :AutoOpen or is AutoOpen the name of a file that has the macro in it that you want to open?
 
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
Sub Macro vrs Function Macro Auto Start =?Utf-8?B?UGF0?= Microsoft Excel Misc 7 6th Jun 2007 09:53 PM
Re: how do i set up an auto-start/auto end macro Frank Kabel Microsoft Excel Worksheet Functions 0 9th Sep 2004 10:30 PM
Auto run macro on start Ian Microsoft Access Reports 2 23rd Mar 2004 11:06 PM
auto start macro radika Microsoft Outlook Discussion 1 28th Jan 2004 12:53 PM
Auto start a macro Victor Lin Microsoft Excel Misc 3 13th Nov 2003 06:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:48 AM.