ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Automatically run a macro (https://www.excelbanter.com/excel-discussion-misc-queries/34892-automatically-run-macro.html)

SheriTingle

Automatically run a macro
 
What do I name a macro to make it automatically run when the Excel file is
first opened? Thanks !

Bob Phillips

Either call it Auto_Open, or else put the code inside the Workbook_Open
event in the Thisworkbook code module.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SheriTingle" wrote in message
...
What do I name a macro to make it automatically run when the Excel file

is
first opened? Thanks !




Michael

Hi SheriTingle. You can name the macro anything you want, you just have to
put it in the correct place. See this site for "Worksheet change events."
http://www.mvps.org/dmcritchie/excel/event.htm
--
Sincerely, Michael Colvin


"SheriTingle" wrote:

What do I name a macro to make it automatically run when the Excel file is
first opened? Thanks !



All times are GMT +1. The time now is 08:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com