Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default auto_open-macro


Hey!
Does anybody know how to write a macro that starts with opening th
file, after the file has updated its data automatically?
...my first time working with VBA.
Thanks for any help!

--
Mr.
-----------------------------------------------------------------------
Mr.T's Profile: http://www.excelforum.com/member.php...fo&userid=2898
View this thread: http://www.excelforum.com/showthread.php?threadid=48713

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default auto_open-macro

I am not sure what you mean by .. after the file has updated its data
automatically ..., but try this

Private Sub Workbook_Open()
Call myMacro
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

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


"Mr.T" wrote in message
...

Hey!
Does anybody know how to write a macro that starts with opening the
file, after the file has updated its data automatically?
..my first time working with VBA.
Thanks for any help!!


--
Mr.T
------------------------------------------------------------------------
Mr.T's Profile:

http://www.excelforum.com/member.php...o&userid=28982
View this thread: http://www.excelforum.com/showthread...hreadid=487139



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
Minimising the Ribbon in an Auto_Open macro Jeff Wiggins Excel Discussion (Misc queries) 3 May 9th 08 03:35 PM
Auto_Open Macro Trying to Excel Excel Discussion (Misc queries) 2 April 13th 07 07:08 AM
The myworkbook.xls Auto_Open() macro won't run if started by a VBS CRayF Excel Programming 5 September 15th 05 06:37 AM
Help with SaveAs Macro on Auto_Open Daen Excel Programming 3 September 15th 04 11:08 PM
Auto_Open vs. macro John Wilson Excel Programming 0 September 22nd 03 05:44 PM


All times are GMT +1. The time now is 03:13 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"