Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find Reference Workbook with Code
I have a Add-In workbook that has code to manipulate data in another workbook
called Quote Generator. Is there a way I can write code to find the referenced workbooks properties such as .Path and .Name? For example, ' in Quote Generator workbook Private Sub Workbook_Open() ' show reference workbooks path MsgBox ReferencedWorkbook.Path MsgBox ReferencedWorkbook.Name End Sub -- Cheers, Ryan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find Reference Workbook with Code
Ryan,
It's not clear how your referencing the workbook but .Fullname returns the name and path r = ThisWorkbook.FullName or MsgBox ReferencedWorkbook.FullName Mike "Ryan H" wrote: I have a Add-In workbook that has code to manipulate data in another workbook called Quote Generator. Is there a way I can write code to find the referenced workbooks properties such as .Path and .Name? For example, ' in Quote Generator workbook Private Sub Workbook_Open() ' show reference workbooks path MsgBox ReferencedWorkbook.Path MsgBox ReferencedWorkbook.Name End Sub -- Cheers, Ryan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA code for find function (reference cell value) | Excel Worksheet Functions | |||
Find reference to specific range in code | Excel Programming | |||
find reference to other workbook | Excel Discussion (Misc queries) | |||
Reference code in another workbook from a calling workbook | Excel Programming | |||
Where can I find TAPI code/reference for VBA? | Excel Programming |