Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to write a macro that resides in workbook A. Using
Set fromarea = Application.InputBox("Where is the source data?", , , , , , , 8) fromarea.parent.name gives me the name of the worksheet that I referenced (in another workbook). I need a way to identify the workbook name as well. It is not activeworkbook or thisworkbook. Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
It's strictly hierarchial: fromarea.parent.parent.name (or path or fullname or whatever WB property) HTH. Best wishes Harald skrev i melding ... I need to write a macro that resides in workbook A. Using Set fromarea = Application.InputBox("Where is the source data?", , , , , , , 8) fromarea.parent.name gives me the name of the worksheet that I referenced (in another workbook). I need a way to identify the workbook name as well. It is not activeworkbook or thisworkbook. Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
fromarea.parent.parent.name Or fromarea.worksheet.parent.name
will give you the workbook name. wrote in message ... I need to write a macro that resides in workbook A. Using Set fromarea = Application.InputBox("Where is the source data?", , , , , , , 8) fromarea.parent.name gives me the name of the worksheet that I referenced (in another workbook). I need a way to identify the workbook name as well. It is not activeworkbook or thisworkbook. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Identify and add formula - can it be done? | Excel Worksheet Functions | |||
How do I identify who placed security on a workbook? | Excel Worksheet Functions | |||
how to identify | Excel Worksheet Functions | |||
Identify repeated cell entries in multiple sheet workbook as you . | Excel Discussion (Misc queries) | |||
Use of variable to identify range of sheets in a workbook | Excel Discussion (Misc queries) |