Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi !! :)
Could someone tell me if it is possible to work with another workbook from a workbook open event procedure ! Thank you !! :) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 !! :) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help creating VBA procedure for Open event | Excel Programming | |||
Open event to call procedure ONLY on Monday | Excel Programming | |||
workbook or worrksheet event procedure | Excel Programming | |||
Why is my Workbook Open procedure not working | Excel Programming | |||
Workbook.Open Event Procedure not firing | Excel Programming |