ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to references objects that exist on local or network drives that aren't open. (https://www.excelbanter.com/excel-programming/287151-how-references-objects-exist-local-network-drives-arent-open.html)

Mike-hime

How to references objects that exist on local or network drives that aren't open.
 
What vba code can reference objects, Range objects in particular, in
workbooks that aren't open?

This is accomplished with Quick Links in Excel... But I can't seem to find a
method in VBA.

I want to do something like this:

Sub MySub()

Public MyVar, LocalWorkbok as Workbook
Set LocalWorkbook = "F:\Database.xls"

MyVar = LocalWorkbook.Find(Etc...)

End sub


But obviously that doesn't work.

Mike-hime




All times are GMT +1. The time now is 10:41 AM.

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