ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Referencing an Excel Name from a different Workbook in VBA (https://www.excelbanter.com/excel-programming/407424-referencing-excel-name-different-workbook-vba.html)

[email protected]

Referencing an Excel Name from a different Workbook in VBA
 
For my business I am trying to work with two separate workbooks. One
for Data and the other for Reports. What is the code to reference a
workbook name in the Data workbook with out opening it. What I tried
did not work but here it is:
X = Excel.Application.Workbooks("Data").Range(Variable Name).Value


All times are GMT +1. The time now is 04:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com