Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry, if this sounds like dumb question but I'm an excel programming noob.
Basically what I'm trying to do is determine what workbook(index wise) is the one closing during the "Worbook before Close" method. For example, lets say I have 5 workbooks open in my Excel session and I close one of them. I could access them easily by saying Application.Workbooks[1], etc. However, I just want to know if there is a way to know which one I'm currently closing. I can easily count my number of open workbooks using workbook.count but I am not able to go from that to the actual index of the one I'm closing... I'm doing this in C# if it helps but I can probably translate VB if someone knows how to do it... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use index and match function for determining the value? | Excel Discussion (Misc queries) | |||
Determining Last Edit Name on Excel Workbook | Excel Programming | |||
Determining if workbook is already opened by someone else? | Excel Programming | |||
Determining last row/column using ADO with closed workbook | Excel Programming | |||
closing excel after closing a workbook | Excel Programming |