![]() |
Workbook Open Event Procedure
Hi !! :)
Could someone tell me if it is possible to work with another workbook from a workbook open event procedure ! Thank you !! :) |
Workbook Open Event Procedure
The Workbook_Open() event procedure will only fire from the workbook the
procedure is in. However, you can put code in that procedure that will return values from another workbook, execute code in another workbook, etc. Private Sub Workbook_Open() Set wb2 = Workbooks.Open("C:\MyDocuments\myFile.xls") wb2.Sheets(1).Range("A1") = "Hello There" MsgBox wb2.Sheets(1).Range(A1").Value End Sub "Vijay Chary" wrote: Hi !! :) Could someone tell me if it is possible to work with another workbook from a workbook open event procedure ! Thank you !! :) |
All times are GMT +1. The time now is 07:46 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com