K
Kanan
I have VBA code creating another session of EXCEL and opening workbook
from my current workbook. here is my code:
Sub openwb_session(drillbook As String, gotosheet As String)
Dim xlapp As Excel.Application
Dim xlwkbk As Workbook
Set xlapp = New Excel.Application
Set xlwkbk = xlapp.Workbooks.Open(Filename:=drillbook)
xlwkbk.Worksheets(gotosheet).Select
xlapp.Visible = True
End Sub
My question is, how do I refer to the second session from my first
workbook's session later on. In other words I don't want this code run again
to opne another session of the workbook.
Please help
Kanan
from my current workbook. here is my code:
Sub openwb_session(drillbook As String, gotosheet As String)
Dim xlapp As Excel.Application
Dim xlwkbk As Workbook
Set xlapp = New Excel.Application
Set xlwkbk = xlapp.Workbooks.Open(Filename:=drillbook)
xlwkbk.Worksheets(gotosheet).Select
xlapp.Visible = True
End Sub
My question is, how do I refer to the second session from my first
workbook's session later on. In other words I don't want this code run again
to opne another session of the workbook.
Please help
Kanan