#1   Report Post  
Posted to microsoft.public.excel.misc
EA EA is offline
external usenet poster
 
Posts: 12
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 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!

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
Excel Macro question Greg Excel Discussion (Misc queries) 4 February 8th 07 05:57 PM
Excel Macro Question? Mike Excel Discussion (Misc queries) 4 July 11th 06 01:50 PM
Excel Macro Question billrl34 Excel Worksheet Functions 1 December 19th 05 10:38 PM
vba excel macro question...ranges zoola Excel Worksheet Functions 3 July 6th 05 08:56 PM
Excel Formula/Worksheet maybe Macro Question Todd Beauchemin Excel Worksheet Functions 3 June 18th 05 05:18 AM


All times are GMT +1. The time now is 03:05 PM.

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

About Us

"It's about Microsoft Excel"