Thread: auto_open-macro
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
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