M
mika.
Hello,
I have two workbooks open, and I want my macro to be able
to figure out which workbook it was called from. I want
the names of the two workboks to be anything, and for the
code to still work.
Basically in this macro, I loop through all the workbooks,
and do something to all the workbooks except the one which
I called the macro from.
I tried this
If Workbooks(Count - 1) <> Application.ActiveWorkbook Then
but to no avail. Any ideas? Thanks.
I have two workbooks open, and I want my macro to be able
to figure out which workbook it was called from. I want
the names of the two workboks to be anything, and for the
code to still work.
Basically in this macro, I loop through all the workbooks,
and do something to all the workbooks except the one which
I called the macro from.
I tried this
If Workbooks(Count - 1) <> Application.ActiveWorkbook Then
but to no avail. Any ideas? Thanks.