#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary
 
Posts: n/a
Default Macro - Auto Run

Hi,

I have made a macro in a workbook that sorts the data I have.

Now, I want this macro to run automatically everytime we open the workbook.

Help required.

Thanks
Gary


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Macro - Auto Run

Private Sub Workbook_Open()
'your code here
End Sub

This is workbook event code.
To input this code, right click on the Excel icon on the worksheet
(or next to the File menu if you maximise your workbooks),
select View Code from the menu, and paste the code

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Gary" wrote in message
...
Hi,

I have made a macro in a workbook that sorts the data I have.

Now, I want this macro to run automatically everytime we open the

workbook.

Help required.

Thanks
Gary




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
auto numbering macro JonM4 Excel Discussion (Misc queries) 0 April 25th 06 03:20 PM
how do I create a macro to auto insert rows? aashish Excel Worksheet Functions 1 January 30th 06 11:49 PM
Auto macro in Excel help sacrum Excel Discussion (Misc queries) 2 January 17th 06 09:30 PM
macro for auto sum ahemani New Users to Excel 2 July 29th 05 12:53 AM
Auto number / macro creation Fiona Excel Discussion (Misc queries) 2 March 7th 05 07:05 AM


All times are GMT +1. The time now is 10:14 AM.

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"