ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel Macro Question (https://www.excelbanter.com/excel-discussion-misc-queries/132533-excel-macro-question.html)

EA

Excel Macro Question
 
Does anyone know how I can have Excel execute a macro whenever the Excel file
is open? It needs to be automated and not prompt the user if they would like
to execute the macro.

Thanks!

Gary''s Student

Excel Macro Question
 
Put something like this in ThisWorkbook code:

Private Sub Workbook_Open()
MsgBox ("hello user")
End Sub
--
Gary''s Student
gsnu200708


"EA" wrote:

Does anyone know how I can have Excel execute a macro whenever the Excel file
is open? It needs to be automated and not prompt the user if they would like
to execute the macro.

Thanks!



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

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