ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   auto_open-macro (https://www.excelbanter.com/excel-programming/346244-auto_open-macro.html)

Mr.T

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


Bob Phillips[_6_]

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





All times are GMT +1. The time now is 04:06 AM.

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